https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6d286a66c3bfb5aedc8a7260407b26acf0060f4c

commit 6d286a66c3bfb5aedc8a7260407b26acf0060f4c
Author:     Amine Khaldi <amine.kha...@reactos.org>
AuthorDate: Tue Apr 3 13:45:23 2018 +0100
Commit:     Amine Khaldi <amine.kha...@reactos.org>
CommitDate: Tue Apr 3 13:45:23 2018 +0100

    [RSAENH_WINETEST] Sync with Wine Staging 3.3. CORE-14434
---
 modules/rostests/winetests/rsaenh/rsaenh.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/modules/rostests/winetests/rsaenh/rsaenh.c 
b/modules/rostests/winetests/rsaenh/rsaenh.c
index c9532b2bcc..bc8e798cdd 100644
--- a/modules/rostests/winetests/rsaenh/rsaenh.c
+++ b/modules/rostests/winetests/rsaenh/rsaenh.c
@@ -224,6 +224,15 @@ static BOOL init_aes_environment(void)
         result = CryptGenKey(hProv, AT_SIGNATURE, 0, &hKey);
         ok(result, "%08x\n", GetLastError());
         if (result) CryptDestroyKey(hKey);
+
+        /* CALG_AES is not supported, but CALG_AES_128 is */
+        result = CryptGenKey(hProv, CALG_AES, 0, &hKey);
+        ok(!result && GetLastError() == NTE_BAD_ALGID, "%d %08x\n", result, 
GetLastError());
+        result = CryptGenKey(hProv, CALG_AES, 128 << 16, &hKey);
+        ok(!result && GetLastError() == NTE_BAD_ALGID, "%d %08x\n", result, 
GetLastError());
+        result = CryptGenKey(hProv, CALG_AES_128, 0, &hKey);
+        ok(result, "%08x\n", GetLastError());
+        if (result) CryptDestroyKey(hKey);
     }
     return TRUE;
 }

Reply via email to