add comment on test

This commit is contained in:
bunnie 2022-06-08 04:35:04 +08:00
parent 7db4db2701
commit ec5d61e678

View file

@ -211,6 +211,10 @@ mod test {
#[cfg(debug_assertions)]
const ITERATIONS: u32 = 500;
// This test looks weird, but it's coded so I can copy-paste vectors from both a test bench and the device
// and confirm that the math is correct, and that the vectors as printed are also correct without having
// to manually check them. The test is also good in that it checks a full e2e exchange between device
// and host, as opposed to just checking againt itself.
#[test]
fn ecdh_test_vectors() {
let host_bytes = hex::decode("555054552084aad44bc2306fc07723309c679b2b94c030fc39b23c670813da9e").unwrap();