From: Sven Püschel <Sven\u2007Pschel@akarisu.de>
Don't verify the second signature, as the signature has identical inputs as the first signature. The reason for two identical signature inputs is to test the same input generates different signatures.
Signed-off-by: Sven Püschel <Sven Püschel@akarisu.de> --- dlls/dssenh/tests/dssenh.c | 18 ------------------ 1 file changed, 18 deletions(-)
diff --git a/dlls/dssenh/tests/dssenh.c b/dlls/dssenh/tests/dssenh.c index cc78eef1391..dd347ed3041 100644 --- a/dlls/dssenh/tests/dssenh.c +++ b/dlls/dssenh/tests/dssenh.c @@ -961,24 +961,6 @@ static void test_signhash(HCRYPTPROV hProv, const struct signature_test *test) result = CryptDestroyHash(hHash); ok(result, "Failed to destroy hash, got %lx\n", GetLastError());
- SetLastError(0xdeadbeef); - result = CryptCreateHash(hProv, CALG_SHA, 0, 0, &hHash); - ok(result, "Failed to create hash, got %lx\n", GetLastError()); - - /* Hash the data to compare with the signed hash */ - SetLastError(0xdeadbeef); - result = CryptHashData(hHash, test->signData, test->dataLen, 0); - ok(result, "Failed to add data to hash, got %lx\n", GetLastError()); - - /* Verify signed hash 2 */ - SetLastError(0xdeadbeef); - result = CryptVerifySignatureA(hHash, signValue2, sizeof(signValue2), pubKey, NULL, 0); - ok(result, "Failed to verify signature, got %lx\n", GetLastError()); - - SetLastError(0xdeadbeef); - result = CryptDestroyHash(hHash); - ok(result, "Failed to destroy hash, got %lx\n", GetLastError()); - /* Destroy the public key */ SetLastError(0xdeadbeef); result = CryptDestroyKey(pubKey);