1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

dssenh: Finalize the hash if necessary in CPVerifySignature().

This commit is contained in:
Hans Leidekker 2023-12-12 13:14:08 +01:00 committed by Alexandre Julliard
parent 7231d4586d
commit 1d0551ca49

View file

@ -1012,5 +1012,11 @@ BOOL WINAPI CPVerifySignature( HCRYPTPROV hprov, HCRYPTHASH hhash, const BYTE *s
return FALSE;
}
if (!hash->finished)
{
if (BCryptFinishHash( hash->handle, hash->value, hash->len, 0 )) return FALSE;
hash->finished = TRUE;
}
return !BCryptVerifySignature( key->handle, NULL, hash->value, hash->len, (UCHAR *)sig, siglen, 0 );
}