From bf69de70546b491a79b811db94b8b2bd348558d4 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 3 Apr 2013 16:41:44 -0700 Subject: [PATCH] if using SHA-512 but not SHA-384, fix so that HMAC still works --- cyassl/ctaocrypt/hmac.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cyassl/ctaocrypt/hmac.h b/cyassl/ctaocrypt/hmac.h index 217718ee6..4a951125a 100644 --- a/cyassl/ctaocrypt/hmac.h +++ b/cyassl/ctaocrypt/hmac.h @@ -58,6 +58,9 @@ enum { MD5 = 0, #endif #if defined(CYASSL_SHA512) + #ifndef CYASSL_SHA384 + SHA384 = 5, + #endif INNER_HASH_SIZE = SHA512_DIGEST_SIZE, HMAC_BLOCK_SIZE = SHA512_BLOCK_SIZE #elif defined(CYASSL_SHA384)