()
| 129 | |
| 130 | #[test] |
| 131 | fn hmac_rejects_wrong_key() { |
| 132 | let k1 = MacKey::from_bytes([1u8; MAC_LEN]); |
| 133 | let k2 = MacKey::from_bytes([2u8; MAC_LEN]); |
| 134 | let tag = compute_hmac(&k1, b"msg"); |
| 135 | assert!(verify_hmac(&k2, b"msg", &tag).is_err()); |
| 136 | } |
| 137 | |
| 138 | #[test] |
| 139 | fn debug_redacts_key() { |
nothing calls this directly
no test coverage detected