Commit Graph

203 Commits

Author SHA1 Message Date
Hans Leidekker 018b695efa bcrypt: Move GnuTLS 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
Michael Stefaniuc 7f99932a39 bcrypt/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-29 09:28:23 +02:00
Hans Leidekker 576d22d251 bcrypt: Introduce helpers for BCryptDe/Encrypt and BCryptImportKeyPair.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-29 16:06:04 +02:00
Hans Leidekker f352837868 bcrypt: Add support for BCRYPT_OPAQUE_KEY_BLOB.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-29 16:06:03 +02:00
Kimmo Myllyvirta 2154562d7e bcrypt/tests: Add simple test for RSA.
Based on patch from Bernhard Übelacker.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-26 21:06:24 +02:00
Kimmo Myllyvirta b3c8723bd4 bcrypt: Initial implementation for RSA key import and signature verification.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-26 21:06:20 +02:00
Michael Müller 19e0f97f71 bcrypt: Implement BCryptVerifySignature for ECDSA signatures.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-26 21:06:13 +02: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 3f17921d86 bcrypt: Preparation for asymmetric keys.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-26 21:05:57 +02:00
Michael Müller 5946973021 bcrypt/tests: Add basic test for ECDSA.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-23 16:28:22 +01:00
Michael Müller d0006d05c9 bcrypt: Add support for 192 and 256 bit AES keys.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-23 16:28:20 +01:00
Hans Leidekker 0c55f8faa3 bcrypt: Implement support for ECB chain mode.
Based on a patch by Sebastian Lackner.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-23 16:28:17 +01:00
Andrew Wesie 5118eb3ab5 bcrypt: Fix BCryptEncrypt with AES_GCM and no input and no output.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-22 11:41:38 +01:00
Hans Leidekker aabc55c491 bcrypt/tests: Add more tests for BCryptGenerateSymmetricKey and BCryptDuplicateKey.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-22 11:41:29 +01:00
Sebastian Lackner e7923d3e0d bcrypt/tests: Add tests for auth data in AES GCM mode.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-22 11:41:24 +01:00
Michael Müller 1b5e877155 bcrypt: Add support for auth data in AES GCM mode.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-22 11:41:20 +01:00
Sebastian Lackner 4f4adf6972 bcrypt/tests: Add tests for BCryptDuplicateKey.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-22 11:41:16 +01: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
Michael Müller 1b999a447b bcrypt: Allow to call BCryptSetProperty on key objects.
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>
2018-03-21 10:41:24 +01:00
Michael Müller c7b46e8e3c bcrypt: Add support for computing/comparing cipher tag.
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>
2018-03-21 10:41:19 +01:00
Michael Müller 8d2b1d276d bcrypt: Implement BCryptDecrypt for AES GCM mode.
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>
2018-03-21 10:41:15 +01:00
Michael Müller 7c9291ce07 bcrypt: Implement BCryptEncrypt for AES GCM mode.
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>
2018-03-21 10:41:12 +01:00
Michael Müller 313c06bfbf bcrypt: Implement BCryptGetProperty for BCRYPT_AUTH_TAG_LENGTH.
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>
2018-03-19 13:16:32 +01:00
Michael Müller ba1ed4432c bcrypt: Implement BCryptGetProperty for BCRYPT_CHAINING_MODE.
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>
2018-03-19 13:16:32 +01:00
Michael Müller 7ec0892ab7 bcrypt: Implement BCryptSetProperty for algorithms.
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>
2018-03-19 13:16:32 +01:00
Sebastian Lackner fb8da6ca0c bcrypt: Pass object to get_{alg, hash}_property instead of alg_id.
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>
2018-03-19 13:15:12 +01:00
Michael Müller 3fe621b6e5 bcrypt/tests: Add tests for AES GCM mode.
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>
2018-03-19 13:15:10 +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
Sebastian Lackner 1db5170f49 bcrypt: Correctly check the size in BCryptGetProperty.
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>
2018-02-28 17:24:36 +01:00
Hans Leidekker 2b2b8418c6 bcrypt: Use the global memory allocation helpers.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-20 20:13:24 +01:00
Alexandre Julliard 5c70c155d7 bcrypt: macOS version 10.8 is needed for encryption support.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-29 11:36:22 +01:00
Hans Leidekker 60c3143928 bcrypt: Fix build error on systems with old GnuTLS.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-22 11:43:25 +01:00
Hans Leidekker 68cff26b1b bcrypt: Require macOS version 10.7 or newer for encryption support.
Reported by Ryan Schmidt.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-19 19:49:02 +01:00
Hans Leidekker dda67031c7 bcrypt: Fix build on macOS 10.8 and older.
Based on a patch by Ryan Schmidt.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-19 19:49:02 +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 20aaf167dd bcrypt: Add support for AES encryption on macOS.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-08 10:16:58 +01:00
Jacek Caban e73d4e55a9 bcrypt: Added support for MD4 hashes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 20:11:11 +01:00
Jacek Caban 85657376b3 bcrypt: Added MD2 hash support.
By adopting rsaenh implementation.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 20:10:28 +01:00
Jacek Caban 1d0d119716 bcrypt/tests: Use common helper for testing different hash types.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 20:09:40 +01:00
Nikolay Sivov a71062b95c bcrypt: Support BCRYPT_KEY_LENGTHS property for AES.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-18 08:08:44 +09:00
Hans Leidekker 8aa300ba1a configure: Check for gnutls_cipher_init instead of gnutls_hash.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-16 22:30:16 +09:00
Hans Leidekker 024a8a0be2 bcrypt: Implement BCryptDecrypt.
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:22 +09: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 9c5a200de5 bcrypt: Implement BCryptGenerateSymmetricKey and BCryptDestroyKey.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-16 22:28:49 +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
Sebastian Lackner b26d89b54a bcrypt: Remove a FIXME which no longer applies.
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
Sebastian Lackner bc20b546ef bcrypt/tests: Add basic tests for BCryptDuplicateHash.
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
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
Sebastian Lackner 1ffe98264c bcrypt/tests: Move common tests to a helper function.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-10 23:21:27 +01:00
Sebastian Lackner eecb068ac0 bcrypt: Return error when requesting BCRYPT_HASH_LENGTH for unsupported object.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-10 23:21:27 +01:00
Sebastian Lackner ced491c65f bcrypt: Unify the object length handling.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-10 23:21:27 +01:00
Michael Müller fd05297f00 bcrypt: Always use builtin hash implementation.
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-09 10:57:22 +01:00
Michael Müller b56ddad8b0 bcrypt: Add a builtin sha384/sha512 implementation.
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-09 10:55:59 +01:00
Michael Müller f34bd5b174 bcrypt: Add a builtin sha256 implementation.
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-09 10:55:53 +01:00
Michael Müller 03630a42f4 bcrypt: Use builtin MD5/SHA1 implementation.
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-09 10:55:38 +01:00
Michael Müller 9c123204f3 bcrypt: Add builtin HMAC implementation.
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-09 10:55:32 +01:00
Hans Leidekker 1ee781266d bcrypt/tests: Relax the AES object length test.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-17 12:25:07 +01:00
Hans Leidekker fd8f32aa8e bcrypt/tests: Add BcryptEncrypt/Decrypt tests.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-06 18:58:36 +01:00
Hans Leidekker 63852e6ac4 bcrypt/tests: Add BCryptGenerateSymmetricKey tests.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-06 18:58:33 +01:00
Hans Leidekker 9fcdc5ec75 bcrypt/tests: Add AES provider tests.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-06 18:58:22 +01:00
Bruno Jesus 8d8936cbb6 bcrypt/tests: Normalize all tests to use function pointers.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-06 18:58:08 +01:00
Bruno Jesus b5e5be13d2 bcrypt/tests: Workaround RegGetValueW not being present in XP.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-06 18:57:58 +01:00
Kai Blaschke c1bc25dd38 bcrypt/tests: Show that BCryptGetFipsAlgorithmMode checks a registry key.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-12 23:42:53 +09:00
Hans Leidekker 6415947e09 bcrypt: Add support for BCRYPT_RNG_ALGORITHM.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-05 00:06:41 +09:00
Patrick Armstrong 408251948e bcrypt: Added BCryptHash function.
Signed-off-by: Patrick Armstrong <pat@oldpatricka.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-24 20:03:51 +09:00
Patrick Armstrong 630f5e97b1 bcrypt: Implement support for HMAC.
Signed-off-by: Patrick Armstrong <pat@oldpatricka.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-11 20:24:14 +09:00
Patrick Armstrong ce3921df33 bcrypt: Make BCryptHashData behave more like Windows with empty input.
Signed-off-by: Patrick Armstrong <pat@oldpatricka.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-09 18:41:22 +09:00
Patrick Armstrong 8bd3e4cc2e bcrypt: Implement MD5 algorithm and add tests.
Signed-off-by: Patrick Armstrong <pat@oldpatricka.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-08 21:28:58 +09:00
Jacek Caban f13cff3a01 bcrypt: Added BCRYPT_ALGORITHM_NAME property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 22:40:07 +09:00
Jacek Caban f0e499f292 bcrypt: Make BCRYPT_HASH_LENGTH implementation more generic.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 22:40:03 +09:00
Jacek Caban 08d2b8ef47 bcrypt: Make BCRYPT_HASH_LENGTH tests more generic.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 22:39:47 +09:00
Huw Davies b2e902b840 bcrypt/tests: Fix incorrect null termination.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-26 22:37:18 +09:00
Francois Gouget 5d9d6e494f bcrypt: Add a trailing '\n' to a WARN() call.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-25 16:16:19 +09:00
Francois Gouget 1b403596f6 bcrypt/tests: Add a trailing '\n' to some ok() calls.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-25 16:16:13 +09:00
Hans Leidekker 11279badf2 bcrypt: Support retrieving hash length from algorithm handles.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 23:13:35 +09:00
Hans Leidekker e3e2805b25 bcrypt: Accept NULL implementation in BCryptOpenAlgorithmProvider.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 23:13:33 +09:00
Huw Davies 625801ed7e bcrypt: Ensure we have gnutls_hash() available.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-19 00:30:37 +09:00
Hans Leidekker a3b10f13b1 bcrypt/tests: Add tests for SHA hashes.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 00:24:37 +09:00
Hans Leidekker 7897c5a60f bcrypt/tests: Don't load bcrypt dynamically.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 00:24:37 +09:00
Hans Leidekker 2cd8d27373 bcrypt: Add support for SHA hashes on Linux using GnuTLS.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-13 23:48:16 +09:00
Hans Leidekker 085ed64df6 bcrypt: Implement BCryptFinishHash.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 18:08:35 +01:00
Hans Leidekker b1e08b3928 bcrypt: Implement BCryptHashData.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 18:08:34 +01:00
Hans Leidekker 46369d79e0 bcrypt: Implement BCryptGetProperty.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 18:08:34 +01:00
Hans Leidekker 0c9b94eeb3 bcrypt: Implement BCryptCreateHash and BCryptDestroyHash.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 18:08:34 +01:00
Hans Leidekker eaf9e41543 bcrypt: Implement BCryptOpenAlgorithmProvider and BCryptCloseAlgorithmProvider.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 18:08:33 +01:00
Marcus Meissner 5b33f18cfc bcrypt: Add BCryptCreateHash stub.
Signed-off-By: Marcus Meissner <marcus@jet.franken.de>
2015-10-01 16:27:42 +09:00
André Hentschel 574b30b685 bcrypt: Add stub for BCryptGetProperty. 2014-10-22 21:00:27 +09:00
Michael Müller f808da266b bcrypt: Add semi-stub for BCryptGetFipsAlgorithmMode. 2014-09-15 16:41:44 +02:00
Bruno Jesus c8c609b59d bcrypt: Add a stub for BCryptCloseAlgorithmProvider. 2014-06-25 10:58:31 +02:00
Alexandre Julliard cf40121ed6 bcrypt: Remove unnecessary DllMain implementation. 2014-05-16 11:33:29 +02:00
Alex Henrie d5f1841417 bcrypt: Add stub for BCryptOpenAlgorithmProvider. 2014-05-01 18:56:19 +02:00
Bruno Jesus a7578c7ae7 bcrypt: Add semi-stub implementation of BCryptGenRandom. 2014-02-11 19:19:15 +01:00
Bruno Jesus a5807d08c5 bcrypt/tests: Add tests for BCryptGenRandom. 2014-02-05 19:34:18 +01:00
Bruno Jesus 52aca431e4 bcrypt: Add BCryptGenRandom stub. 2014-02-05 19:34:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
David Hedberg 66db40e891 crypt32: Add BCryptEnumAlgorithms stub. 2011-05-30 17:55:43 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Henri Verbeet 5c8985002f bcrypt: Add a mostly empty bcrypt.dll.
This is the "Cryptography API: Next Generation" introduced by Vista.
2009-03-30 15:12:47 +02:00