mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-16 20:52:57 +08:00
Fixed long key bug in HMAC calculation.
This commit is contained in:
parent
00e1e6bcbe
commit
b583af94a5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user