Santino Mazza
53cb28e6d9
ncrypt/tests: Test for NCryptSetProperty.
...
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-21 22:33:54 +01:00
Santino Mazza
bac61d0505
ncrypt/tests: Test for NCryptCreatePersistedKey.
...
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-21 22:33:54 +01:00
Santino Mazza
ebf4953e90
ncrypt: Check null handle when setting or getting properties.
...
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-21 22:33:54 +01:00
Santino Mazza
e08c2f35f8
ncrypt: Validate existence of property before creating one.
...
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-21 22:33:54 +01:00
Francois Gouget
b2e4ce14c0
ncrypt: Add trailing linefeeds to ERR() messages.
...
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-18 22:10:47 +01:00
Santino Mazza
12cb5d2efe
ncrypt: Add NCryptVerifySignature stub.
...
With this change now some applications which uses ncrypt for
signature validation work.
For example, the visual studio installer (using dotnet from winetricks).
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-17 22:16:02 +01:00
Santino Mazza
88e027b523
ncrypt: NCryptGetProperty should always fill result size.
...
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-17 18:59:00 +01:00
Santino Mazza
9b1c28e84b
ncrypt: Set a couple of key properties.
...
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-17 18:58:55 +01:00
Hans Leidekker
26d8f33479
ncrypt: Fix resizing property array.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-17 18:58:45 +01:00
Hans Leidekker
59584b996b
ncrypt: Build without -DWINE_NO_LONG_TYPES.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-16 22:05:34 +01:00
Santino Mazza
b8924d9da9
ncrypt: Implement NCryptGetProperty and NCryptSetProperty.
...
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-16 22:05:33 +01:00
Santino Mazza
24a4431f67
ncrypt: Implement NCryptFreeObject.
...
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-16 22:05:33 +01:00
Santino Mazza
ea3d15f2ec
ncrypt/tests: Test NCryptFreeObject function.
...
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-16 22:05:33 +01:00
Santino Mazza
2252613aba
ncrypt: Implement NCryptImportKey function.
...
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-16 22:05:33 +01:00
Santino Mazza
cf3517b790
ncrypt: Make NCryptOpenStorageProvider return a valid stub pointer.
...
Some applications crash when the storage provider is null.
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-16 22:05:33 +01:00
Santino Mazza
e7a91b0a1c
ncrypt/tests: Test key import of an rsa key.
...
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-15 22:59:53 +01:00
Alexandre Julliard
f0cd33c69e
include: Add support for defining Win32 types as 'long' where possible.
...
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Alexandre Julliard
088a787a2c
makefiles: Make -mno-cygwin the default.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Alexandre Julliard
a3a0fc94e2
ncrypt: Use --prefer-native instead of DLL_WINE_PREATTACH.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-24 22:01:42 +01:00
Vitaly Lipatov
98c67d8679
ncrypt: Add NCryptIsKeyHandle stub.
...
Signed-off-by: Vitaly Lipatov <lav@etersoft.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-26 10:23:59 +01:00
Hans Leidekker
0e17045288
bcrypt: Implement BCryptDeriveKeyCapi.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-27 00:14:14 +02:00
Joseph Kogut
1f75b08127
ncrypt: Add NCryptIsAlgSupported stub.
...
Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-07 11:32:49 +02:00
Joseph Kogut
0ea8128a88
ncrypt: Add NCryptDeleteKey stub.
...
Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-07 11:32:45 +02:00
Joseph Kogut
94e38a6126
ncrypt: Add NCryptImportKey stub.
...
Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-07 11:32:32 +02:00
Joseph Kogut
9ea80d88b9
ncrypt: Add NCrypt{Get,Set}Property stubs.
...
Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-07 11:32:28 +02:00
Joseph Kogut
ff885a810d
ncrypt: Add NCryptFreeBuffer stub.
...
Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-07 11:32:22 +02:00
Joseph Kogut
2f6735e821
ncrypt: Add NCryptEnumKeys stub.
...
Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-07 11:32:17 +02:00
Joseph Kogut
2321adb1c8
ncrypt: Add NCryptEnumAlgorithms stub.
...
Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-07 11:32:08 +02:00
Hans Leidekker
98b230f851
bcrypt: Implement BCryptSignHash.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-23 19:44:18 +02:00
Hans Leidekker
c1746612b2
bcrypt: Add stub implementations of BCryptEnumContextFunctions and BCryptFreeBuffer.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-17 20:47:32 +02:00
Alexandre Julliard
1c6256575b
ncrypt: Build with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-14 09:28:14 +02:00
Alistair Leslie-Hughes
eb615ea0cb
bcrypt: Add BCryptDeriveKey stub.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-28 12:06:46 +02:00
Alistair Leslie-Hughes
08bc5b0d34
bcrypt: Add BCryptDestroySecret/BCryptSecretAgreement stubs.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-28 12:06:46 +02:00
Hans Leidekker
f0a18f6f19
bcrypt: Implement BCryptDeriveKeyPBKDF2.
...
Based on a patch by Jack Grigg.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=42704
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-13 19:45:24 +01:00
Hans Leidekker
73b695f059
bcrypt: Implement BCryptGenerate/FinalizeKeyPair for ECDH P256.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46564
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-13 19:45:24 +01:00
Michael Müller
76b6c360fa
bcrypt: Implement importing of ECDSA keys.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-26 21:06:04 +02:00
Michael Müller
cb0a960ff6
bcrypt: Implement BCryptDuplicateKey.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-22 11:41:05 +01:00
Hans Leidekker
c77d5c65fb
bcrypt: Partial implementation of BCryptImportKey and BCryptExportKey.
...
Based on a patch by Michael Müller.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-28 17:24:38 +01:00
Dmitry Timoshkov
76bc8d01c0
bcrypt: Add some crypto-provider related stubs.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-14 20:30:10 +01:00
Hans Leidekker
7f8dd873c8
bcrypt: Implement BCryptEncrypt.
...
Partially based on a patch by Michael Müller.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-16 22:29:17 +09:00
Hans Leidekker
7148b9ecb4
bcrypt: Add a stub implementation of BCryptDecrypt.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-16 22:28:42 +09:00
Hans Leidekker
1a0b52d5d2
bcrypt: Add a stub implementation of BCryptEncrypt.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-16 22:28:18 +09:00
Hans Leidekker
c6b4151b45
bcrypt: Add a stub implementation of BCryptSetProperty.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-16 22:27:57 +09:00
Hans Leidekker
b677b58b60
bcrypt: Add a stub AES implementation.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-16 22:27:36 +09:00
Michael Müller
da8853f062
bcrypt: Implement BCryptDuplicateHash.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-10 23:21:28 +01:00
Austin English
789c4c45ce
ncrypt: Add some stub functions.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-15 11:15:19 +09:00
Alex Henrie
084827e901
ncrypt: Add stub dll.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-26 22:14:52 +09:00