mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-04-29 00:43:23 +02:00
Fix coverity uninit var warnings, add missing priv key ForceZero.
This commit is contained in:
@@ -20968,6 +20968,7 @@ int TimingPadVerify(WOLFSSL* ssl, const byte* input, int padLen, int macSz,
|
||||
byte good;
|
||||
int ret = 0;
|
||||
|
||||
XMEMSET(verify, 0, WC_MAX_DIGEST_SIZE);
|
||||
good = MaskPadding(input, pLen, macSz);
|
||||
/* 4th argument has potential to underflow, ssl->hmac function should
|
||||
* either increment the size by (macSz + padLen + 1) before use or check on
|
||||
@@ -21601,6 +21602,7 @@ static WC_INLINE int VerifyMac(WOLFSSL* ssl, const byte* input, word32 msgSz,
|
||||
byte verify[WC_MAX_DIGEST_SIZE];
|
||||
|
||||
XMEMSET(verify, 0, WC_MAX_DIGEST_SIZE);
|
||||
|
||||
if (ssl->specs.cipher_type == block) {
|
||||
pad = input[msgSz - 1];
|
||||
padByte = 1;
|
||||
|
||||
Reference in New Issue
Block a user