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

Class TestCase

wycheproof2blb/src/hkdf.rs:26–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected