summaryrefslogtreecommitdiff
path: root/security/nss/lib/softoken/alghmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/nss/lib/softoken/alghmac.c')
-rw-r--r--security/nss/lib/softoken/alghmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/softoken/alghmac.c b/security/nss/lib/softoken/alghmac.c
index fb22fbd9c..a975f3f5a 100644
--- a/security/nss/lib/softoken/alghmac.c
+++ b/security/nss/lib/softoken/alghmac.c
@@ -62,7 +62,7 @@ HMAC_Create(const SECHashObject *hash_obj, const unsigned char *secret,
{
HMACContext *cx;
unsigned int i;
- unsigned char hashed_secret[HASH_LENGTH_MAX];
+ unsigned char hashed_secret[SHA1_LENGTH];
/* required by FIPS 198 Section 3 */
if (isFIPS && secret_len < hash_obj->length/2) {