From: Juan Lang Date: Tue, 30 Mar 2010 19:03:31 +0000 (-0700) Subject: rsaenh: Add tests of KP_SALT parameter. X-Git-Tag: wine-1.1.42~119 X-Git-Url: http://git.etersoft.ru/projects/?a=commitdiff_plain;h=ece32e7f127dfb039da341515cbe87c13f91c632;p=wine%2Feterwine.git rsaenh: Add tests of KP_SALT parameter. --- diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c index 94b1ed0b9a..9e17531d1b 100644 --- a/dlls/rsaenh/tests/rsaenh.c +++ b/dlls/rsaenh/tests/rsaenh.c @@ -493,6 +493,10 @@ static void test_block_cipher_modes(void) result = CryptSetKeyParam(hKey, KP_MODE, (BYTE*)&dwMode, 0); ok(result, "%08x\n", GetLastError()); + result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0); + ok(result, "%08x\n", GetLastError()); + ok(dwLen == 11 || broken(dwLen == 0 /* Win9x/NT4 */), "unexpected salt length %d\n", dwLen); + dwLen = 23; result = CryptEncrypt(hKey, 0, TRUE, 0, NULL, &dwLen, 24); ok(result, "CryptEncrypt failed: %08x\n", GetLastError()); @@ -738,6 +742,12 @@ static void test_aes(int keylen) for (i=0; i