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

Class TestCase

wycheproof2blb/src/ecdsa.rs:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected