Skip to content

Commit b72a213

Browse files
committed
ForceZero hmac buffer in Tls13IntegrityOnly_Decrypt before return F-1466
1 parent d7ecfec commit b72a213

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/tls13.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2968,6 +2968,7 @@ static int Tls13IntegrityOnly_Decrypt(WOLFSSL* ssl, byte* output,
29682968
/* Copy the input to output if not the same buffer */
29692969
if (ret == 0 && output != input)
29702970
XMEMCPY(output, input, sz);
2971+
ForceZero(hmac, sizeof(hmac));
29712972
return ret;
29722973
}
29732974
#endif

0 commit comments

Comments
 (0)