mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 20:40:50 +02:00
ForceZero hmac buffer in Tls13IntegrityOnly_Decrypt before return F-1466
This commit is contained in:
@@ -2968,6 +2968,7 @@ static int Tls13IntegrityOnly_Decrypt(WOLFSSL* ssl, byte* output,
|
||||
/* Copy the input to output if not the same buffer */
|
||||
if (ret == 0 && output != input)
|
||||
XMEMCPY(output, input, sz);
|
||||
ForceZero(hmac, sizeof(hmac));
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user