Convert a `result` enum to a byte.
(case: &Case)
| 99 | |
| 100 | /// Convert a `result` enum to a byte. |
| 101 | pub fn case_result(case: &Case) -> u8 { |
| 102 | match case.result { |
| 103 | CaseResult::Invalid => 0u8, |
| 104 | CaseResult::Valid => 1u8, |
| 105 | _ => panic!("Unexpected case result {}", case.result), |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | /// Retrieve Wycheproof test vectors from the given filename in a Wycheproof repo. |
| 110 | pub fn data(wycheproof_dir: &str, filename: &str) -> Vec<u8> { |
nothing calls this directly
no outgoing calls
no test coverage detected