diff options
author | Rob Austein <sra@hactrn.net> | 2015-06-05 13:51:08 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-06-05 13:51:08 -0400 |
commit | f7a65af3e2505642e1006fa35138e87a8f69c37c (patch) | |
tree | 3ee125a233ba8968ff0f79c68bf1d9337c0682e5 /hash.c | |
parent | 1655dbf3b2c44d600f9c71086fb403b3490a2343 (diff) |
HMAC for truncated SHA-512 digests would probably work better if we
used the right digest length constants. Doh.
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -172,19 +172,19 @@ const hal_hash_descriptor_t hal_hash_sha256[1] = {{ }}; const hal_hash_descriptor_t hal_hash_sha512_224[1] = {{ - SHA512_BLOCK_LEN, SHA512_DIGEST_LEN, + SHA512_BLOCK_LEN, SHA512_224_DIGEST_LEN, sizeof(internal_hash_state_t), sizeof(internal_hmac_state_t), &sha512_224_driver }}; const hal_hash_descriptor_t hal_hash_sha512_256[1] = {{ - SHA512_BLOCK_LEN, SHA512_DIGEST_LEN, + SHA512_BLOCK_LEN, SHA512_256_DIGEST_LEN, sizeof(internal_hash_state_t), sizeof(internal_hmac_state_t), &sha512_256_driver }}; const hal_hash_descriptor_t hal_hash_sha384[1] = {{ - SHA512_BLOCK_LEN, SHA512_DIGEST_LEN, + SHA512_BLOCK_LEN, SHA384_DIGEST_LEN, sizeof(internal_hash_state_t), sizeof(internal_hmac_state_t), &sha384_driver }}; |