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

Class TestCase

wycheproof2blb/src/ed25519.rs:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37#[derive(Debug, Deserialize)]
38struct TestCase {
39 #[serde(flatten)]
40 pub case: wycheproof::Case,
41 #[serde(with = "hex_string")]
42 pub msg: Vec<u8>,
43 #[serde(with = "hex_string")]
44 pub sig: Vec<u8>,
45}
46
47pub fn generator(data: &[u8], algorithm: &str, _key_size: u32) -> Vec<TestInfo> {
48 let suite: TestSuite = serde_json::from_slice(data).unwrap();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected