Commit Graph

25 Commits

Author SHA1 Message Date
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
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
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 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 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 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
Michael Müller f808da266b bcrypt: Add semi-stub for BCryptGetFipsAlgorithmMode. 2014-09-15 16:41:44 +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