Zhiyi Zhang
caa5f68e41
bcrypt: Fix a compiler warning on Mac.
...
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-05 21:52:23 +02:00
Nikolay Sivov
38d9020f29
bcrypt: Add initial support for asymmetric keys in BCryptDecrypt().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-04 16:36:32 +01:00
Nikolay Sivov
21839185d9
bcrypt: Implement RSA key pair importing.
...
Requires libgnutls 3.7.0, that contains fixes for optional arguments handling
in gnutls_privkey_import_rsa_raw() to support BCRYPT_RSAPRIVATE_BLOB.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-03 20:18:36 +01:00
Hans Leidekker
6decf17305
bcrypt: Add support for duplicating asymmetric keys.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-14 20:31:16 +02:00
Alexandre Julliard
a472ad191f
bcrypt: Move the backend code to a new Unix library.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-29 15:37:29 +02:00
Alexandre Julliard
209b968efc
bcrypt: Split the key structure into generic and backend-specific parts.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-29 15:28:49 +02:00
Alexandre Julliard
f0e1384777
bcrypt: Add separate backend functions for destroying symmetric/asymmetric keys.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-29 14:23:40 +02:00
Alexandre Julliard
4590465613
bcrypt: Move the symmetric key initialization to the generic code.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-29 14:12:19 +02:00
Alexandre Julliard
b8ada902d1
bcrypt: Move setting a symmetric key vector to the generic code.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-29 13:58:56 +02:00
Alexandre Julliard
54c1b0ac26
bcrypt: Move the public key initialization to the generic code.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-29 13:47:14 +02:00
Huw Davies
8a43688b3d
bcrypt: Add stubs for DSS private key functions on macOS.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-05 16:54:35 +02:00
Alexandre Julliard
3caa333127
bcrypt: Use standard dlopen() instead of the libwine wrappers.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-06 21:21:41 +02:00
Hans Leidekker
f4d6df8947
bcrypt: Avoid recreating cipher handles when the initialization vector doesn't change.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-06 16:03:50 +01:00
Alistair Leslie-Hughes
e95215d08c
bcrypt: Fix key_asymmetric_init function for macos.
...
Regression introduced in 98b230f851
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-09-24 17:28:45 +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
b2bbb6f48f
bcrypt: Add support for generating RSA keys.
...
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
691fcebf3d
bcrypt: Ignore the size parameter in BCRYPT_CHAINING_MODE setters.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47432
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-05 17:38:04 +02:00
Hans Leidekker
158ce169e4
bcrypt: Add support for importing and exporting ECC private keys.
...
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
Hans Leidekker
8b8a32f7a8
bcrypt: Default to building with GnuTLS support on macOS, if present.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-20 18:36:56 +02:00
Hans Leidekker
d265dd88cd
bcrypt: Move macOS support to a new file.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-18 14:13:43 +02:00