We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15ac071 commit e1a0192Copy full SHA for e1a0192
1 file changed
wrapper/rust/wolfssl-wolfcrypt/tests/test_lms.rs
@@ -387,7 +387,9 @@ fn test_get_kid() {
387
key.make_key(&mut rng).expect("Error with make_key()");
388
389
let mut kid = [0u8; Lms::KEY_ID_LEN];
390
- key.get_kid(&mut kid).expect("Error with get_kid()");
+ let kid_len = key.get_kid(&mut kid).expect("Error with get_kid()");
391
+ assert_eq!(kid_len, Lms::KEY_ID_LEN, "get_kid() must write KEY_ID_LEN bytes");
392
+ assert!(kid.iter().any(|&b| b != 0), "get_kid() must populate the output buffer");
393
394
let _ = store;
395
}
0 commit comments