]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lib/hmac.c
A4STATS: remove E style escapes and switch to createtable for indices
[irc/quakenet/newserv.git] / lib / hmac.c
index 256228a349cf9c3d6c83f1315bc7fb8e8afd35dc..ceb6df0e658a648c8ffb84a947250604c18b7791 100644 (file)
@@ -50,7 +50,6 @@ void hmacsha1_init(hmacsha1 *c, unsigned char *key, int keylen) {
     SHA1Init(&keyc);
     SHA1Update(&keyc, key, keylen);
     SHA1Final(realkey, &keyc);
-    keylen = 20;
   } else {
     memcpy(realkey, key, keylen);
   }
@@ -88,7 +87,6 @@ void hmacmd5_init(hmacmd5 *c, unsigned char *key, int keylen) {
     MD5Init(&keyc);
     MD5Update(&keyc, key, keylen);
     MD5Final(realkey, &keyc);
-    keylen = 16;
   } else {
     memcpy(realkey, key, keylen);
   }