Commit graph

63 commits

Author SHA1 Message Date
Rémi Bernon
9b19a110ea dssenh: Only fill hash buffer when it's provided.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=30244
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-25 21:13:00 +02:00
Rémi Bernon
cf770571bf dssenh: Return NTE_BAD_KEYSET when key cannot be opened.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=30244
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-25 21:13:00 +02:00
Rémi Bernon
c5bdc2408f dssenh/tests: Add CryptAcquireContextA last error check.
When container key doesn't exist yet.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=30244
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-25 21:13:00 +02:00
Alexandre Julliard
5d82baf974 winecrt0: Add a default implementation DllRegisterServer()/DllUnregisterServer().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-30 22:59:50 +02:00
Francois Gouget
ce03715db3 dssenh/tests: Fix the spelling of a skip() message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-25 22:51:35 +01:00
Hans Leidekker
7201688841 dssenh: No longer prefer native.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-20 12:43:52 +02:00
Hans Leidekker
4dcb417ed2 dssenh: Implement CRYPT_MACHINE_KEYSET.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-20 12:43:48 +02:00
Hans Leidekker
691404bd06 dssenh: Add support for importing version 3 public keys.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-20 12:43:45 +02:00
Hans Leidekker
a714475655 dssenh: Always duplicate container keys.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-20 12:43:42 +02:00
Hans Leidekker
04acc70df4 dssenh/tests: Add tests for CryptDuplicateKey.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-20 12:43:38 +02:00
Hans Leidekker
b4ca2d001c dssenh: Add support for exporting private keys.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-19 14:56:29 +02:00
Hans Leidekker
1b1637fc1f dssenh: Implement CPSetHashParam.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-19 14:56:29 +02:00
Hans Leidekker
554e315bcf dssenh: Access the hash value directly in CPSignHash and CPVerifySignature.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-19 14:56:29 +02:00
Hans Leidekker
248d27ea2d dssenh: Implement CPGetUserKey.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-19 14:56:29 +02:00
Hans Leidekker
320b9eb474 dssenh: Implement CRYPT_DELETEKEYSET.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-19 14:56:29 +02:00
Hans Leidekker
90bb4fe34b dssenh: Implement CPGenKey.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-14 20:31:44 +02:00
Hans Leidekker
52ad894784 dssenh: Implement CPVerifySignature.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-14 20:31:39 +02:00
Hans Leidekker
d176e537b3 dssenh: Implement CPSignHash.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-14 20:31:33 +02:00
Hans Leidekker
e1374be736 dssenh: Implement CPExportKey.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-14 20:31:22 +02:00
Hans Leidekker
603cb31633 dssenh: Set last error in CPHashData.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-12 18:44:53 +02:00
Hans Leidekker
c822cb995e dssenh: Implement CPGenRandom.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-12 18:44:51 +02:00
Hans Leidekker
e32b29a3fd dssenh: Implement CPDuplicateKey.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-12 18:44:48 +02:00
Hans Leidekker
bf83b89dab dssenh: Implement CPDuplicateHash.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-12 18:44:44 +02:00
Hans Leidekker
b5e931d83c dssenh: Don't store the algorithm handle for hashes.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-12 18:44:40 +02:00
Hans Leidekker
c1371f356c dssenh: Implement CPImportKey and CPDestroyKey.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-09 16:21:33 +02:00
Hans Leidekker
8ff5c52b14 dssenh: Implement CPGetHashParam.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-09 16:21:33 +02:00
Hans Leidekker
d5688169a8 dssenh: Implement CPHashData.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-09 16:21:33 +02:00
Hans Leidekker
e7a79ce426 dssenh: Implement CPCreateHash and CPDestroyHash.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-09 16:21:33 +02:00
Hans Leidekker
0b8a12f39a dssenh: Implement CPAcquireContext and CPReleaseContext.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-09 16:21:33 +02:00
Hans Leidekker
3ae2dd164c dssenh: Register the DSS provider.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-08 21:46:44 +02:00
Hans Leidekker
c690a31acf dssenh: Add stub implementations for a couple of functions.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-08 21:46:44 +02:00
Hans Leidekker
2e11036feb dssenh/tests: Get rid of workarounds for old Windows versions.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-02 19:03:00 +02:00
Zhang Shuai
9c641c3879 dssenh/tests: Add keylength tests for enhanced and schannel providers.
Signed-off-by: Zhang Shuai <wxsxsdz@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-22 23:00:33 +01:00
Alexandre Julliard
7054e7d40a dssenh: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-03 10:47:12 +02:00
Michael Stefaniuc
4a900755f2 dssenh/test: Replace a macro with ARRAY_SIZE.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-06 19:44:26 +02:00
Huw Davies
95e2059387 dssenh/tests: Fix a failing test on Windows 7.
This makes it symmetric with the test directly preceding it.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-03 19:05:10 +01:00
Huw Davies
07115ab98f dssenh/tests: Use a non-crippled algorithm in the key exchange tests.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-04 14:09:33 +01:00
Huw Davies
25b744b0af dssenh/tests: RC4 has been crippled in recent Windows versions.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-04 14:09:31 +01:00
Huw Davies
43204a0d92 dssenh/tests: The default container may already exist.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-04 14:09:29 +01:00
Huw Davies
ad9910bdfb dssenh/tests: Fix some tests on Win 8. 2015-04-20 21:21:35 +09:00
Bruno Jesus
ba06731c99 dssenh/tests: Add tests for the default encryption chaining mode. 2014-06-30 22:04:52 +02:00
Alexandre Julliard
99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard
5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Michael Stefaniuc
f561f8a2be dssenh/tests: Compile with -D__WINESRC__. 2013-10-18 11:32:14 +02:00
Michael Stefaniuc
0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Hans Leidekker
725797249c dssenh/tests: Fix test failures on 64-bit Vista. 2013-06-25 18:12:11 +02:00
Alexandre Julliard
f02cdd877f Remove empty DLL_PROCESS_DETACH case statements. 2013-04-15 16:45:35 +02:00
Francois Gouget
b8050f0571 Assorted spelling fixes. 2012-09-04 16:15:52 +02:00
Marek Chmiel
97fda5a413 dssenh/tests: Added key exchange tests for the DSSENH cryptographic service provider. 2012-08-27 11:13:48 +02:00
Francois Gouget
b37c3d840d dssenh/tests: add a trailing '\n' to a couple of ok() calls. 2012-08-21 17:47:48 +02:00