From: bg Date: Thu, 20 Dec 2007 02:18:24 +0000 (+0000) Subject: schon wieder was falsch gemacht ... X-Git-Url: https://git.cryptolib.org/?a=commitdiff_plain;h=fd53c14f5093145e9e4036588448d8cf2b5ec2ab;p=avr-crypto-lib.git schon wieder was falsch gemacht ... --- diff --git a/hmac-sha256.c b/hmac-sha256.c index 714933f..f7cf7ba 100644 --- a/hmac-sha256.c +++ b/hmac-sha256.c @@ -29,7 +29,7 @@ void hmac_sha256_init(hmac_sha256_ctx_t *s, void* key, uint16_t kl){ if (kl > SHA256_BLOCK_BITS){ sha256((void*)buffer, key, kl); } else { - memcpy(buffer, key, (kl+7/8)); + memcpy(buffer, key, (kl+7)/8); } for (i=0; i