| 24 | |
| 25 | #[derive(Debug, Deserialize)] |
| 26 | pub 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] |
| 38 | pub fn generator(data: &[u8], algorithm: &str, key_size: u32) -> Vec<TestInfo> { |
nothing calls this directly
no outgoing calls
no test coverage detected