summaryrefslogtreecommitdiff
path: root/lib/freebl/hmacct.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/freebl/hmacct.c')
-rw-r--r--lib/freebl/hmacct.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/freebl/hmacct.c b/lib/freebl/hmacct.c
index fac323e85..a1b2ba35a 100644
--- a/lib/freebl/hmacct.c
+++ b/lib/freebl/hmacct.c
@@ -274,6 +274,11 @@ MAC(unsigned char *mdOut,
hashObj->end(mdState, mdOut, mdOutLen, mdOutMax);
hashObj->destroy(mdState, PR_TRUE);
+ PORT_Memset(lengthBytes, 0, sizeof lengthBytes);
+ PORT_Memset(hmacPad, 0, sizeof hmacPad);
+ PORT_Memset(firstBlock, 0, sizeof firstBlock);
+ PORT_Memset(macOut, 0, sizeof macOut);
+
return SECSuccess;
}