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

Class TestCase

wycheproof2blb/src/mac.rs:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25#[derive(Debug, Deserialize)]
26pub struct TestCase {
27 #[serde(flatten)]
28 pub case: wycheproof::Case,
29 #[serde(with = "hex_string")]
30 pub key: Vec<u8>,
31 #[serde(with = "hex_string")]
32 pub msg: Vec<u8>,
33 #[serde(with = "hex_string")]
34 pub tag: Vec<u8>,
35}
36
37#[must_use]
38pub fn generator(data: &[u8], algorithm: &str, key_size: u32) -> Vec<TestInfo> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected