Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
6751811f
Commit
6751811f
authored
Aug 02, 2015
by
zeroday
Browse files
Merge pull request #585 from DiUS/hmac-key-fix
Fix for HMAC with long keys
parents
00e1e6bc
b583af94
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/crypto/digests.c
View file @
6751811f
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment