mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Clear finalized field upon hmac context creation
This commit is contained in:
parent
006ebc0633
commit
9c887a13b4
@ -12,6 +12,7 @@
|
||||
#define HMAC_CONTEXT_CREATE(cipher) \
|
||||
/* Clear key. */ \
|
||||
memset(out->key, 0, sizeof(out->key)); \
|
||||
out->finalized = false; \
|
||||
\
|
||||
/* Either hash the key into the context, or copy it directly if possible. */ \
|
||||
if (key_size <= sizeof(out->key)) { \
|
||||
|
Loading…
Reference in New Issue
Block a user