rsaenh: Fix the case when CPGetHashParam should return the size of the HASHVAL.
This commit is contained in:
parent
bf1ad6c324
commit
dd6598b834
|
@ -2568,6 +2568,11 @@ BOOL WINAPI RSAENH_CPGetHashParam(HCRYPTPROV hProv, HCRYPTHASH hHash, DWORD dwPa
|
|||
&pCryptHash->tpPRFParams.blobSeed, pbData, *pdwDataLen);
|
||||
}
|
||||
|
||||
if ( pbData == NULL ) {
|
||||
*pdwDataLen = pCryptHash->dwHashSize;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (pCryptHash->dwState == RSAENH_HASHSTATE_IDLE) {
|
||||
SetLastError(NTE_BAD_HASH_STATE);
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in New Issue