MCPcopy Create free account
hub / github.com/RustCrypto/utils / TestCase

Class TestCase

wycheproof2blb/src/aes_siv.rs:25–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24#[derive(Debug, Deserialize)]
25struct TestCase {
26 #[serde(flatten)]
27 pub case: wycheproof::Case,
28 #[serde(with = "hex_string")]
29 pub key: Vec<u8>,
30 #[serde(with = "hex_string")]
31 pub aad: Vec<u8>,
32 #[serde(with = "hex_string")]
33 pub msg: Vec<u8>,
34 #[serde(with = "hex_string")]
35 pub ct: Vec<u8>,
36}
37
38pub fn generator(data: &[u8], algorithm: &str, key_size: u32) -> Vec<TestInfo> {
39 let suite: TestSuite = serde_json::from_slice(data).unwrap();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected