From 3608c0da0ae04e13faa7aa350067e90c91f6a9e2 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Fri, 14 Jul 2000 09:12:24 +0000 Subject: [PATCH] Fixed bug in silc_hmac_make. --- lib/silccrypt/silchmac.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.24.0