mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Fixed use of uninitialized value in wc_BufferKeyDecrypt.
This commit is contained in:
@ -272,6 +272,8 @@ int wc_BufferKeyDecrypt(EncryptedInfo* info, byte* der, word32 derSz,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
(void)XMEMSET(key, 0, WC_MAX_SYM_KEY_SIZE);
|
||||||
|
|
||||||
#ifndef NO_PWDBASED
|
#ifndef NO_PWDBASED
|
||||||
if ((ret = wc_PBKDF1(key, password, passwordSz, info->iv, PKCS5_SALT_SZ, 1,
|
if ((ret = wc_PBKDF1(key, password, passwordSz, info->iv, PKCS5_SALT_SZ, 1,
|
||||||
info->keySz, hashType)) != 0) {
|
info->keySz, hashType)) != 0) {
|
||||||
|
Reference in New Issue
Block a user