schon wieder was falsch gemacht ...

This commit is contained in:
bg 2007-12-20 02:18:24 +00:00
parent 639b9bea16
commit fd53c14f50
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ void hmac_sha256_init(hmac_sha256_ctx_t *s, void* key, uint16_t kl){
if (kl > SHA256_BLOCK_BITS){ if (kl > SHA256_BLOCK_BITS){
sha256((void*)buffer, key, kl); sha256((void*)buffer, key, kl);
} else { } else {
memcpy(buffer, key, (kl+7/8)); memcpy(buffer, key, (kl+7)/8);
} }
for (i=0; i<SHA256_BLOCK_BITS/8; ++i){ for (i=0; i<SHA256_BLOCK_BITS/8; ++i){