Commit Graph

36 Commits

Author SHA1 Message Date
Alexandre Julliard 18fbc3a3cf rsaenh: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-19 11:22:47 +02:00
Jacek Caban d4c511b9f2 rsaenh: Removed no longer needed ALG_ID argument from helper functions.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 20:11:32 +01:00
Jacek Caban 3e8556447c rsaenh: Use bcrypt for MD5 hashes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 20:11:25 +01:00
Jacek Caban 2b7fcef811 rsaenh: Use bcrypt for MD4 hashes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 20:11:18 +01:00
Jacek Caban b0329620dd rsaenh: Use bcrypt for SHA1 hashes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 20:10:57 +01:00
Jacek Caban 8009091f11 rsaenh: Use bcrypt for MD2 hashes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 20:10:48 +01:00
Jacek Caban 14ac2f6029 rsaenh: Do not use stack variables out of frame (Coverity).
Based on patch by Marcus Meissner.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-21 16:26:07 +02:00
Jacek Caban 4c917e9532 rsaenh: Implement duplicate_hash_impl for bcrypt-based hashes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-06 18:50:48 +02:00
Jacek Caban 524c632a82 rsaenh: Use bcrypt for SHA265 hashes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 19:24:40 +02:00
Jacek Caban 78a5d66003 rsaenh: Use bcrypt for SHA384 hashes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 19:24:40 +02:00
Jacek Caban 6aa5fdf952 rsaenh: Use bcrypt for SHA512 hashes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 19:24:40 +02:00
Michael Stefaniuc 1a3137fa1b rsaenh: Avoid using CONST. 2013-09-23 11:54:42 +02:00
Juan Lang 2d658db553 rsaenh: Infer private exponent length from data length. 2011-11-01 10:43:43 +01:00
Juan Lang 62d806601b rsaenh: Implement CALG_SSL3_SHAMD5 hashing. 2010-05-21 14:37:52 +02:00
Juan Lang 311d839dec rsaenh: Add support for SHA-256, SHA-384, and SHA-512. 2010-03-16 11:29:32 +01:00
Juan Lang 27027590f8 rsaenh: Only reverse the significant bytes of an exported public key. 2009-11-09 19:33:53 +01:00
Juan Lang 2d05074fba rsaenh: Only reverse the significant bytes of an exported private key. 2009-11-09 19:33:48 +01:00
Juan Lang 1004b57c55 rsaenh: Explicitly clear unused memory when exporting a public key. 2009-11-09 19:33:29 +01:00
Juan Lang 49c11910d8 rsaenh: Explicitly clear unused memory when exporting a private key. 2009-11-09 19:33:25 +01:00
Andrew Talbot 038169b6a7 rsaenh: Assign to structs instead of using memcpy. 2008-03-17 11:41:17 +01:00
Vijay Kiran Kamuju 1dbaa8c619 rsaenh: Add implementation of Enhanced RSA AES Provider. 2007-11-21 13:07:41 +01:00
Juan Lang 41d057837c rsaenh: Support setting the effective key length of RC2 keys. 2007-09-11 12:35:22 +02:00
Andrew Talbot c94f113f4f rsaenh: Constify some variables. 2007-08-24 10:57:16 +02:00
Andrew Talbot 5319668a30 rsaenh: Cast-qual warning fix. 2006-11-14 11:34:37 +01:00
Juan Lang 51f24d4170 rsaenh: Correct signature checking.
- pass desired key to encrypt_block_impl
- don't change the alg id of imported keys
- add a few traces
2006-09-29 14:41:15 +02:00
Marcus Meissner 0c15360a3e Removes all unnecessary WINE_DEFAULT_DEBUG_CHANNEL and respective wine/debug.h includes. 2006-09-11 11:30:48 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Michael Jung bd78de791d Use SystemFunction036 to generate random bytes. 2005-05-27 19:22:22 +00:00
Jakob Eriksson 9ed61de9a2 Get rid of HeapAlloc casts. 2005-03-24 21:01:35 +00:00
Michael Jung 2accec1fbc Removed another check for valid'ness of algid. It's redundant. 2005-01-24 11:30:05 +00:00
Michael Jung ea01425e16 Removed check for valid'ness of algid. It's redundant. 2005-01-10 12:26:57 +00:00
Michael Jung 0da8a5219e Adhere to const'ness of the input data in encrypt_block_impl. 2005-01-03 20:14:03 +00:00
Michael Jung 96ebad1a0d Implemented CPSignHash and CPVerifySignature.
Added tests for CPVerifySignature.
Fixed minor bugs in implglue.c.
2004-12-13 13:24:48 +00:00
Michael Jung 0ff7203335 Added a missing break in encrypt_block_impl. 2004-12-06 11:37:43 +00:00
Michael Jung 95c3d9b2a5 Moved code specific to CPGenKey, CPDeriveKey or CPImportKey from
new_key into the respective functions.
2004-12-01 15:34:56 +00:00
Michael Jung ca371a48b2 Incorporated LibTomCrypt code into rsaenh to get rid of OpenSSL
dependencies.
2004-11-30 17:43:59 +00:00