From 9c887a13b4e660f6d77379fd50d4da468c332aca Mon Sep 17 00:00:00 2001 From: averne Date: Sat, 15 Jun 2019 19:42:35 +0200 Subject: [PATCH] Clear finalized field upon hmac context creation --- nx/source/crypto/hmac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nx/source/crypto/hmac.c b/nx/source/crypto/hmac.c index 2cd7a2e2..64d314a3 100644 --- a/nx/source/crypto/hmac.c +++ b/nx/source/crypto/hmac.c @@ -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)) { \