HMAC_SHA3-256.txt at [18bed2dd62]

File tests/test_vectors/MAC/HMAC_SHA3-256.txt artifact c17f79ca22 part of check-in 18bed2dd62


# HMAC-SHA3-256
# From https://csrc.nist.gov/projects/cryptographic-standards-and-guidelines/example-values

[b = 136]
[L = 32]

Klen = 32
Tlen = 32
Len = 34
Msg = "Sample message for keylen<blocklen"
Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
Mac = 4fe8e202c4f058e8dddc23d8c34e467343e23555e24fc2f025d598f558f67205

Klen = 136
Tlen = 32
Len = 34
Msg = "Sample message for keylen=blocklen"
Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f8081828384858687
Mac = 68b94e2e538a9be4103bebb5aa016d47961d4d1aa906061313b557f8af2c3faa

Klen = 168
Tlen = 32
Len = 34
Msg = "Sample message for keylen>blocklen"
Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7
Mac = 9bcf2c238e235c3ce88404e813bd2f3a97185ac6f238c63d6229a00b07974258

Klen = 32
Tlen = 16
Len = 54
Msg = "Sample message for keylen<blocklen, with truncated tag"
Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
Mac = c8dc7148d8c1423aa549105dafdf9cad2941471b5c62207088e56ccf2dd80545
Trunc = c8dc7148d8c1423aa549105dafdf9cad