aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/crypto.h
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-02-21 13:10:08 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-02-21 13:10:08 +0000
commit51f4dfa035bfb8f43fcd1626c447da9f93e47dce (patch)
tree5c26cbe4cd08f1ec9f1a7463d60827ef216c13bf /src/pluto/crypto.h
parent9f6a17a444425efb631a994da1802fdac6bb9d27 (diff)
downloadstrongswan-51f4dfa035bfb8f43fcd1626c447da9f93e47dce.tar.bz2
strongswan-51f4dfa035bfb8f43fcd1626c447da9f93e47dce.tar.xz
SHA512-HMAC bug fix and hash function self-test support
Diffstat (limited to 'src/pluto/crypto.h')
-rw-r--r--src/pluto/crypto.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pluto/crypto.h b/src/pluto/crypto.h
index d29475af2..48c983349 100644
--- a/src/pluto/crypto.h
+++ b/src/pluto/crypto.h
@@ -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(