From: Nikos Mavrogiannopoulos Date: Sun, 6 Feb 2011 22:38:56 +0000 (+0100) Subject: Increase the maximum HMAC key to account for anonymous ciphersuites. X-Git-Tag: gnutls_2_99_0~321 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57d48627c00dc543edef8d36d7887f61d9d74ba6;p=thirdparty%2Fgnutls.git Increase the maximum HMAC key to account for anonymous ciphersuites. --- diff --git a/lib/nettle/mac.c b/lib/nettle/mac.c index cec1d03c16..b3f09b75e1 100644 --- a/lib/nettle/mac.c +++ b/lib/nettle/mac.c @@ -58,7 +58,12 @@ struct nettle_hash_ctx digest_func digest; }; -#define MAX_HMAC_KEY 128 +/* FIXME: Nettle doesn't have a reset function for + * hmac so we need to manually reset a context, by + * calling set_key(). For that reason we need to + * store the hmac key here. + */ +#define MAX_HMAC_KEY 1024 struct nettle_hmac_ctx {