Fixed bug in silc_hmac_make.
authorPekka Riikonen <priikone@silcnet.org>
Fri, 14 Jul 2000 09:12:24 +0000 (09:12 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Fri, 14 Jul 2000 09:12:24 +0000 (09:12 +0000)
lib/silccrypt/silchmac.c

index 8554ddbddef92b5ca14233ec3664f9ea1eb8fd61..30f36c3f98a8cbc5593f80a9fca2151af9494a0b 100644 (file)
@@ -20,6 +20,9 @@
 /*
  * $Id$
  * $Log$
+ * Revision 1.3  2000/07/14 09:12:24  priikone
+ *     Fixed bug in silc_hmac_make.
+ *
  * Revision 1.2  2000/07/05 06:08:43  priikone
  *     Global cosmetic change.
  *
@@ -152,5 +155,6 @@ void silc_hmac_set_key(SilcHmac hmac, const unsigned char *key,
                       unsigned int key_len)
 {
   hmac->key = silc_calloc(key_len, sizeof(unsigned char));
+  hmac->key_len = key_len;
   memcpy(hmac->key, key, key_len);
 }