SHA512-HMAC bug fix and hash function self-test support

This commit is contained in:
Andreas Steffen
2007-02-21 13:10:08 +00:00
parent 9f6a17a444
commit 51f4dfa035
5 changed files with 1095 additions and 45 deletions
+2 -1
View File
@@ -76,7 +76,8 @@ struct hmac_ctx {
const struct hash_desc *h; /* underlying hash function */
size_t hmac_digest_size; /* copy of h->hash_digest_size */
union hash_ctx hash_ctx; /* ctx for hash function */
u_char buf1[HMAC_BUFSIZE], buf2[HMAC_BUFSIZE];
u_char buf1[MAX_HASH_BLOCK_SIZE];
u_char buf2[MAX_HASH_BLOCK_SIZE];
};
extern void hmac_init(