From: Pekka Riikonen Date: Sat, 2 Nov 2002 19:19:14 +0000 (+0000) Subject: Fixed silc_hmac_init_with_key, which didn't set the key correctly. X-Git-Tag: silc.server.0.9.8~5 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=2d15b7c948b7f64e5561d2ed5d216fd3389dc347 Fixed silc_hmac_init_with_key, which didn't set the key correctly. --- diff --git a/lib/silccrypt/silchmac.c b/lib/silccrypt/silchmac.c index 1cce72cd..e839956e 100644 --- a/lib/silccrypt/silchmac.c +++ b/lib/silccrypt/silchmac.c @@ -429,7 +429,7 @@ void silc_hmac_init_with_key(SilcHmac hmac, const unsigned char *key, SilcUInt32 key_len) { SilcHash hash = hmac->hash; - silc_hmac_init_internal(hmac, hmac->key, hmac->key_len); + silc_hmac_init_internal(hmac, (unsigned char *)key, key_len); silc_hash_init(hash); silc_hash_update(hash, hmac->inner_pad, silc_hash_block_len(hash)); }