()
| 114 | |
| 115 | #[test] |
| 116 | fn hmac_roundtrip() { |
| 117 | let key = MacKey::from_bytes([7u8; MAC_LEN]); |
| 118 | let tag = compute_hmac(&key, b"hello world"); |
| 119 | verify_hmac(&key, b"hello world", &tag).unwrap(); |
| 120 | } |
| 121 | |
| 122 | #[test] |
| 123 | fn hmac_rejects_tampered_data() { |
nothing calls this directly
no test coverage detected