diff options
author | Pauli <paul.dale@oracle.com> | 2018-08-16 08:54:35 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2018-09-04 08:09:12 +1000 |
commit | e0810e3502bbf14ee274033e7eeabb551ce38510 (patch) | |
tree | bda457dbc208227d39c25cd684f84925568cb304 /test/recipes | |
parent | bdd58bd249f1b6d4c7ccdd9c54fd33db874e0084 (diff) |
Fix HMAC SHA3-224 and HMAC SHA3-256.
Added NIST test cases for these two as well.
Additionally deprecate the public definiton of HMAC_MAX_MD_CBLOCK in 1.2.0.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6972)
Diffstat (limited to 'test/recipes')
-rw-r--r-- | test/recipes/30-test_evp_data/evpmac.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/recipes/30-test_evp_data/evpmac.txt b/test/recipes/30-test_evp_data/evpmac.txt index ef7ba940cc..9de8be1ab4 100644 --- a/test/recipes/30-test_evp_data/evpmac.txt +++ b/test/recipes/30-test_evp_data/evpmac.txt @@ -249,6 +249,42 @@ Title = SHA3 # NIST's test vectors MAC = HMAC +Algorithm = SHA3-224 +Input = "Sample message for keylen<blocklen" +Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b +Output = 332cfd59347fdb8e576e77260be4aba2d6dc53117b3bfb52c6d18c04 + +MAC = HMAC +Algorithm = SHA3-224 +Input = "Sample message for keylen=blocklen" +Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f +Output = d8b733bcf66c644a12323d564e24dcf3fc75f231f3b67968359100c7 + +MAC = HMAC +Algorithm = SHA3-224 +Input = "Sample message for keylen>blocklen" +Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaab +Output = 078695eecc227c636ad31d063a15dd05a7e819a66ec6d8de1e193e59 + +MAC = HMAC +Algorithm = SHA3-256 +Input = "Sample message for keylen<blocklen" +Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +Output = 4fe8e202c4f058e8dddc23d8c34e467343e23555e24fc2f025d598f558f67205 + +MAC = HMAC +Algorithm = SHA3-256 +Input = "Sample message for keylen=blocklen" +Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f8081828384858687 +Output = 68b94e2e538a9be4103bebb5aa016d47961d4d1aa906061313b557f8af2c3faa + +MAC = HMAC +Algorithm = SHA3-256 +Input = "Sample message for keylen>blocklen" +Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7 +Output = 9bcf2c238e235c3ce88404e813bd2f3a97185ac6f238c63d6229a00b07974258 + +MAC = HMAC Algorithm = SHA3-384 Input = "Sample message for keylen<blocklen" Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f |