From: Pekka Riikonen Date: Fri, 14 Jul 2000 09:12:24 +0000 (+0000) Subject: Fixed bug in silc_hmac_make. X-Git-Tag: 1.2.beta1~2780 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=3608c0da0ae04e13faa7aa350067e90c91f6a9e2;p=crypto.git Fixed bug in silc_hmac_make. --- diff --git a/lib/silccrypt/silchmac.c b/lib/silccrypt/silchmac.c index 8554ddbd..30f36c3f 100644 --- a/lib/silccrypt/silchmac.c +++ b/lib/silccrypt/silchmac.c @@ -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); }