rsaenh/tests: Test the reported length on success
André Hentschel
nerv at dawncrow.de
Tue Feb 15 12:49:14 CST 2011
---
dlls/rsaenh/tests/rsaenh.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index 6b0faeb..ccccb59 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -947,10 +947,12 @@ static void test_aes(int keylen)
for (i=0; i<sizeof(pbData); i++) pbData[i] = (unsigned char)i;
- /* AES provider doesn't support salt */
+ /* Does AES provider support salt? */
result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0);
ok((!result && GetLastError() == NTE_BAD_KEY) || result /* Win7 */,
"expected NTE_BAD_KEY, got %08x\n", GetLastError());
+ if (result)
+ ok(!dwLen, "unexpected salt length %d\n", dwLen);
dwLen = 13;
result = CryptEncrypt(hKey, 0, TRUE, 0, pbData, &dwLen, 16);
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list