rsaenh: Validate pbData in CPSetKeyParam().

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
This commit is contained in:
Dmitry Timoshkov 2024-04-25 11:25:13 +03:00 committed by Alexandre Julliard
parent 5f984f8ce3
commit 4ff40a6708

View file

@ -3822,6 +3822,12 @@ BOOL WINAPI RSAENH_CPSetKeyParam(HCRYPTPROV hProv, HCRYPTKEY hKey, DWORD dwParam
return FALSE;
}
if (!pbData)
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
switch (dwParam) {
case KP_PADDING:
/* The MS providers only support PKCS5_PADDING */