Commit Graph

161 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
Hans Leidekker 633779b472 rsaenh: Fix a memory leak (Valgrind).
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-09 21:08:10 +01:00
Zhiyi Zhang af605f8b38 rsaenh: Implement RSA OAEP.
Implement RSA optimal asymmetric encryption padding according to RFC 8017.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-04 09:13:24 -05:00
Zhiyi Zhang 07232b3870 rsaenh: Move PKCS1 padding and unpadding functions.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-04 09:12:59 -05: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
Huw Davies d192e9a199 rsaenh: CALG_AES is not supported.
This is the correct fix for what commit f5c687e365
was trying to fix.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-16 14:03:07 +01:00
Alex Henrie 37c5d5adad rsaenh: Use a macro to initialize the string sizes in aProvEnumAlgsEx.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-06 21:48:46 +02:00
Alexandre Julliard f7eb53b1f9 rsaenh: Avoid potential buffer overflows in registry key name.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-29 15:51:27 +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
Akihiro Sagawa e705dfc27f rsaenh: Don't import a public key to a key container.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-01 19:29:14 +02:00
Bruno Jesus 6bad16363b rsaenh: Don't reset the salt length after setting a salt for Base and Strong providers. 2015-01-13 20:48:42 +01:00
Hans Leidekker 2884053a28 rsaenh: Fix typos in SHA-384/SHA-512 OIDs. 2014-09-15 16:41:16 +02:00
Bruno Jesus d59011a9fb rsaenh: A 40 bit key on Enhanced provider will not have salt even if asked for. 2014-08-05 16:37:35 +02:00
Bruno Jesus d7aae7d728 rsaenh: Use the remaining hash data as salt if requested. 2014-08-05 16:37:25 +02:00
Bruno Jesus fb58e7eca6 rsaenh: Handle the failure to set Base provider effective key length properly. 2014-08-05 16:37:21 +02:00
Bruno Jesus 86dd877f4e rsaenh: The RC2 algorithm from Base provider supports only 40 bit keys. 2014-08-04 14:24:26 +02:00
Bruno Jesus a8b1fee2ea rsaenh: Use a helper to get the key container. 2014-08-04 14:24:18 +02:00
Bruno Jesus d2793fe242 rsaenh: Detect AES prototype provider correctly. 2014-07-28 17:20:27 -05:00
Bruno Jesus f5c687e365 rsaenh: CALG_AES cannot be used if the key length was not specified. 2014-07-23 21:24:23 +02:00
Bruno Jesus 453d6dc105 rsaenh: Change the way AES 128 is derived to match Windows behavior. 2014-07-23 21:24:22 +02:00
Bruno Jesus e55dc35020 rsaenh: Change the default AES chaining mode to CBC. 2014-07-23 21:24:22 +02:00
Nikolay Sivov bfd2c533be rsaenh: Fail on unsupported flag values only in CryptHashData(). 2013-10-18 11:31:23 +02:00
Hans Leidekker cabeb962cc rsaenh: Add support for setting the security descriptor on key containers. 2013-09-23 11:56:48 +02:00
Michael Stefaniuc 1a3137fa1b rsaenh: Avoid using CONST. 2013-09-23 11:54:42 +02:00
Hans Leidekker 8e74c8953a rsaenh: Add support for retrieving the security descriptor on key containers. 2013-09-19 20:14:02 +02:00
Qian Hong 2d0653e2b2 rsaenh: Restore key state even after decrypting a block of bad data. 2013-07-01 19:51:57 +02:00
Alexandre Julliard a1f5b109ed rsaenh: Don't bother to free memory at process exit. 2013-05-15 10:25:21 +02:00
Juan Lang 373e472db9 rsaenh: Ensure a PKCS1 data block has at least minimum length. 2012-11-02 10:59:42 +01:00
Frédéric Delanoy 936d5351f5 rsaenh: Remove unused file-static variables. 2011-11-17 11:37:35 +01:00
Andrew Talbot 7998cd4629 rsaenh: Remove unneeded address-of operator from array name. 2011-11-02 12:31:38 +01:00
Juan Lang 2d658db553 rsaenh: Infer private exponent length from data length. 2011-11-01 10:43:43 +01:00
Juan Lang 54b972e2fc rsaenh: Add error messages for failed private key imports. 2011-11-01 10:43:31 +01:00
Francois Gouget c992ca277d Assorted spelling fixes. 2011-08-24 19:07:46 +02:00
Frédéric Delanoy 7e309601f3 dlls: Assorted spelling fixes. 2011-08-03 14:15:50 +02:00
Alexandre Julliard b56dc9a6f7 winecrt0: Remove the clsid parameter in __wine_(un)register_resources. 2011-08-02 20:47:49 +02:00
David Hedberg f8755d8422 rsaenh: Don't fail on signature verification if the signed hash lacks the OID. 2011-06-15 20:04:38 +02:00
Juan Lang 00ba1f606c rsaenh: Fully initialize schannel algorithm information. 2011-02-15 16:51:30 +01:00
Juan Lang 8e479f7803 rsaenh: Disallow deriving schannel encryption keys before setting the encryption algorithm. 2011-02-11 17:42:01 +01:00
Juan Lang ea43c5989c rsaenh: Disallow creating schannel master hashes before setting the client random and server random. 2011-02-11 17:41:57 +01:00
Juan Lang 9f8d00889f rsaenh: Be more careful about when to hash HMAC key material. 2011-01-17 13:22:06 +01:00
Juan Lang 786c57d323 rsaenh: Only set key length on successful retrieval of hash value. 2011-01-17 13:22:06 +01:00
Juan Lang c91afb9733 rsaenh: Add support for CRYPT_IPSEC_HMAC_KEY. 2011-01-14 18:26:17 +01:00
Juan Lang 5ccf2bd998 rsaenh: Move check for CRYPT_IPSEC_HMAC_KEY to each key import function. 2011-01-14 18:26:17 +01:00
Alexandre Julliard 07a627b1b8 rsaenh: Convert dll registration to the IRegistrar mechanism. 2010-12-09 12:11:20 +01:00
Gerald Pfeifer c8748d73d1 rsaenh: Simplify store_key_container_permissions. 2010-05-26 10:14:41 +02:00
Juan Lang 62d806601b rsaenh: Implement CALG_SSL3_SHAMD5 hashing. 2010-05-21 14:37:52 +02:00
Juan Lang 1991ff2a0c rsaenh: Don't return salt for algorithms that don't support it. 2010-03-31 11:36:16 +02:00
Juan Lang c5a6b7b366 rsaenh: Support setting salt via KP_SALT (resend). 2010-03-31 11:36:11 +02:00
Juan Lang 89b8adb262 rsaenh: Add signature support for SHA-256, SHA-384, and SHA-512 hashes. 2010-03-16 11:29:40 +01:00
Juan Lang 311d839dec rsaenh: Add support for SHA-256, SHA-384, and SHA-512. 2010-03-16 11:29:32 +01:00