Commit 6751811f authored by zeroday's avatar zeroday
Browse files

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

Fix for HMAC with long keys
parents 00e1e6bc b583af94
...@@ -140,7 +140,7 @@ int ICACHE_FLASH_ATTR crypto_hmac (const digest_mech_info_t *mi, ...@@ -140,7 +140,7 @@ int ICACHE_FLASH_ATTR crypto_hmac (const digest_mech_info_t *mi,
mi->update (ctx, key, key_len); mi->update (ctx, key, key_len);
mi->finalize (digest, ctx); mi->finalize (digest, ctx);
key = digest; key = digest;
key_len = mi->block_size; key_len = mi->digest_size;
} }
const size_t bs = mi->block_size; const size_t bs = mi->block_size;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment