]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Increase the maximum HMAC key to account for anonymous ciphersuites.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 6 Feb 2011 22:38:56 +0000 (23:38 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 6 Feb 2011 22:40:41 +0000 (23:40 +0100)
lib/nettle/mac.c

index cec1d03c162c9a5133dcb42132e939db7a639f2c..b3f09b75e15a787b8b1b257adec38e7c569ca6a2 100644 (file)
@@ -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
 {