Clear finalized field upon hmac context creation

This commit is contained in:
averne 2019-06-15 19:42:35 +02:00 committed by yellows8
parent 006ebc0633
commit 9c887a13b4

View File

@ -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)) { \