Merge pull request #585 from DiUS/hmac-key-fix

Fix for HMAC with long keys
This commit is contained in:
zeroday 2015-08-02 23:36:26 +08:00
commit 6751811ffb
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ int ICACHE_FLASH_ATTR crypto_hmac (const digest_mech_info_t *mi,
mi->update (ctx, key, key_len);
mi->finalize (digest, ctx);
key = digest;
key_len = mi->block_size;
key_len = mi->digest_size;
}
const size_t bs = mi->block_size;