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

Class TestCase

wycheproof2blb/src/aead.rs:28–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27#[derive(Debug, Deserialize)]
28pub struct TestCase {
29 #[serde(flatten)]
30 pub case: wycheproof::Case,
31 #[serde(with = "hex_string")]
32 pub aad: Vec<u8>,
33 #[serde(with = "hex_string")]
34 pub ct: Vec<u8>,
35 #[serde(with = "hex_string")]
36 pub iv: Vec<u8>,
37 #[serde(with = "hex_string")]
38 pub key: Vec<u8>,
39 #[serde(with = "hex_string")]
40 pub msg: Vec<u8>,
41 #[serde(with = "hex_string")]
42 pub tag: Vec<u8>,
43}
44
45#[must_use]
46pub fn aes_gcm_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