Add NULL parameter validation to wc_CryptKey F-1372

This commit is contained in:
Juliusz Sosinowicz
2026-04-03 09:57:35 +02:00
parent d6d439c6e6
commit dcde00a1eb
+3
View File
@@ -338,6 +338,9 @@ int wc_CryptKey(const char* password, int passwordSz, const byte* salt,
WOLFSSL_ENTER("wc_CryptKey");
if (password == NULL || salt == NULL || input == NULL)
return BAD_FUNC_ARG;
if (length < 0)
return BAD_LENGTH_E;