Hans Leidekker
8f087c4dff
bcrypt/tests: Add DH tests.
2023-11-30 23:12:54 +01:00
Hans Leidekker
94d90ceec4
bcrypt: Add support for exporting DH keys.
2023-11-30 23:12:54 +01:00
Hans Leidekker
df83abb241
bcrypt: Add support for generating DH keys.
2023-11-30 23:12:54 +01:00
Alexandre Julliard
acad49573a
makefiles: Always use the global SOURCES variable for .c files.
2023-11-01 22:44:03 +01:00
Piotr Caban
f86c49695f
bcrypt/tests: Add LEGACY_RSAPRIVATE_BLOB key import tests.
2023-08-10 10:01:08 +09:00
Piotr Caban
65b90ab367
bcrypt: Add BCRYPT_KEY_STRENGTH key property implementation.
2023-08-10 10:01:07 +09:00
Paul Gofman
9af055170e
bcrypt: Pass GNUTLS_VERIFY_ALLOW_BROKEN to gnutls_pubkey_verify_hash2().
2023-06-30 17:34:53 +02:00
Hans Leidekker
9742fe8996
bcrypt: Add RC4 algorithm stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55160
2023-06-28 18:57:22 +02:00
Alex Henrie
36cf952664
bcrypt/tests: Don't allocate inside todo_wine and free outside of it.
...
Fixes a warning on GCC 13.
2023-06-02 09:29:37 +02:00
Paul Gofman
39dc9d09f3
bcrypt: Only reset init vector if the new vector is non-NULL.
2023-02-13 17:02:45 +01:00
Paul Gofman
7d31f39487
bcrypt: Update init vector after encrypt or decrypt.
2023-02-13 17:02:45 +01:00
Paul Gofman
8e305d811a
bcrypt/tests: Add more tests for AES initialization vectors.
2023-02-13 17:02:45 +01:00
Paul Gofman
a88cc50365
bcrypt/tests: Test BCRYPT_PAD_NONE encryption result in test_rsa_encrypt().
2022-12-15 22:28:28 +01:00
Paul Gofman
6f455e10af
bcrypt: Return correct error from key_asymmetric_encrypt() if key is missing.
2022-12-15 22:28:28 +01:00
Hans Leidekker
96692a2c21
bcrypt: Add support for PSS padding.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53972
2022-12-06 17:12:31 +01:00
Hans Leidekker
11cc3ca151
bcrypt/tests: Get rid of workarounds for old Windows versions.
2022-12-06 17:12:30 +01:00
Hans Leidekker
d75f651404
bcrypt: Validate hash output length.
2022-11-01 20:46:22 +01:00
Hans Leidekker
6f5028dd03
bcrypt: Add full support for algorithm pseudo-handles.
2022-09-13 16:22:20 +02:00
Chris Denton
5df4ff1341
bcrypt: Add basic support for pseudo-handles.
...
Support constant values for algorithm handles in `BCryptGenRandom` and make no attempt to dereference such handles.
2022-09-09 23:21:40 +02:00
Nikolay Sivov
c6a75d01b5
bcrypt/tests: Use CRT allocation functions.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-31 17:44:53 +02:00
Hans Leidekker
5253c8d77e
bcrypt: Support ECDH_P384 key import/export.
2022-08-23 09:40:56 -05:00
Santino Mazza
5c1b0e5df5
bcrypt: Move symmetric flags check to symmetric section.
...
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
2022-08-15 18:11:25 +02:00
Hans Leidekker
d3638d426b
bcrypt: Add AES CFB chaining mode support.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53483
2022-08-04 18:59:10 +02:00
Santino Mazza
dd61c5638a
bcrypt: Initial RSA encryption implementation.
...
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
2022-08-03 15:09:02 +02:00
Santino Mazza
4a395899ea
bcrypt/tests: Test for BCryptEncrypt with RSA keys.
...
Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
2022-08-03 15:09:02 +02:00
Hans Leidekker
40306db341
bcrypt: Fix array index in BCryptEnumAlgorithms().
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-06 23:07:20 +02:00
Hans Leidekker
1fa5bfd7da
bcrypt: Fix DSA public key export when we don't have a private key handle.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-24 23:22:06 +01:00
Hans Leidekker
5b860a44a0
bcrypt: Fix RSA public key export when we don't have a private key handle.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-24 23:22:06 +01:00
Paul Gofman
00dfa1bd04
bcrypt: Fix ECC public key export.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-23 18:42:13 +01:00
Hans Leidekker
9ff16aa1cb
bcrypt: Return an error when BCryptFinalizeKeyPair() is called twice.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-10 18:27:43 +01:00
Santino Mazza
bae287a1aa
bcrypt: Implement KeyLength property.
...
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-03-08 22:43:36 +01:00
Santino Mazza
83bb9eb9aa
bcrypt: Validate key size when importing RSA public 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-03-07 11:21:43 +01:00
Santino Mazza
b3073dc14a
bcrypt: Add support for PUBLICKEY blob types.
...
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-03-04 10:06:01 +01:00
Santino Mazza
94e5de6d16
bcrypt/tests: Test for invalid RSA keyblob.
...
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-03-02 20:17:25 +01:00
Eric Pouech
5cf4d0b6c9
bcrypt/tests: Don't outdent todo_wine*.
...
This prevents -Wmisleading-indentation warnings (Mingw GCC11).
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-21 18:55:22 +01:00
Hans Leidekker
5ce0e86d04
bcrypt/tests: Build without -DWINE_NO_LONG_TYPES.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-09 18:37:32 +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
Piotr Kleski
f32a9d1e20
bcrypt: Return BCryptSignHash len when only output is NULL.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52426
Signed-off-by: Piotr Kleski <piotr.kleski@mobica.com>
Signed-off-by: Michal Janiszewski <michal.janiszewski@mobica.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-20 18:15:40 +01:00
Hans Leidekker
e6da4eed7e
bcrypt/tests: Link directly to functions available since Windows 7.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-03 16:56:09 +01:00
Hans Leidekker
2795c7f995
bcrypt: Add support for exporting RSA private keys.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52060
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-03 16:56:09 +01:00
Paul Gofman
028837158a
bcrypt: Validate secret size in BCryptGenerateSymmetricKey().
...
Fixes online connection error in Forza Horizon 5.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-12 22:42:51 +01:00
Paul Gofman
f638bd901e
bcrypt/tests: Add test for key parallel usage.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-20 21:07:10 +02:00
Rémi Bernon
6b569a451f
bcrypt: Implement 3DES cipher support.
...
This is used by CoD: WWII multiplayer mode to login to its servers.
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>
2020-11-10 17:19:44 +01:00
Hans Leidekker
f1e11804a0
bcrypt/tests: Fix a key handle leak.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-19 14:56:29 +02:00
Michael Stefaniuc
d541f5cffe
bcrypt/tests: Use wide-char string literals.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-08 10:46:04 +02:00
Rémi Bernon
4ee4fffafa
bcrypt: Export ECDSA/ECDH blobs with the correct header magic.
...
This fixes Flight Simulator XAL authentication error message.
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>
2020-09-02 12:57:47 +02:00
Rémi Bernon
4bc5b822f6
bcrypt: Return STATUS_INVALID_PARAMETER on ECC magic mismatch.
...
Flight Simulator XAL authentication hits this condition because of
buggy bcrypt private key export (see next patch).
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>
2020-09-02 12:57:35 +02:00
Hans Leidekker
d17b118f03
bcrypt: Allow importing private ECDSA keys.
...
Based on a patch by Derek Lesho.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-29 21:26:35 +02:00
Brendan Shanks
e6314baa5e
bcrypt: Add tests for BCryptSecretAgreement/BCryptDestroySecret/BCryptDeriveKey.
...
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-20 22:19:58 +02:00
Zebediah Figura
46eac8de74
bcrypt/tests: Fix some failures on Windows 7.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-22 16:43:12 +02:00