Commit Graph

31 Commits

Author SHA1 Message Date
Alexandre Julliard 4120fb994a crypt32: Use wide-character string literals.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-09 11:44:12 +01:00
Hans Leidekker 0875abcce0 crypt32: GetUserName sets last error to ERROR_INSUFFICIENT_BUFFER if the buffer is too small. 2011-06-01 16:13:30 +02:00
Hans Leidekker 0376ec38b0 crypt32: Initialize salt correctly. 2009-06-04 12:17:53 +02:00
Marcus Meissner 9990bde993 crypt32: Change salt allocation to handle errors (Coverity 133). 2009-05-08 12:27:19 +02:00
Alexandre Julliard 2136b1697f crypt32: Avoid printing pointer differences in traces. 2009-01-08 13:03:01 +01:00
Juan Lang c958a71df9 crypt32: Don't set salt's cbData unless allocation succeeds. Fixes Coverity id 133. 2008-09-11 11:44:05 +02:00
Andrew Talbot 5d886557df crypt32: Remove unneeded casts. 2007-12-31 17:44:51 +01:00
Juan Lang 72ab894db1 crypt32: Use 3DES to encrypt data. 2007-11-08 11:49:32 +01:00
Juan Lang 46ef0fb4e8 crypt32: Set correct bit lengths for algorithms. 2007-11-08 11:49:20 +01:00
Juan Lang 8456f67a2d crypt32: Pass key length to CryptDeriveKey. 2007-11-08 11:49:13 +01:00
Juan Lang fd1dd39a36 crypt32: Use the enhanced provider rather than the default (base) provider. 2007-11-08 11:49:07 +01:00
Juan Lang 11a4968734 crypt32: Use SHA1 rather than MD5 to protect data. 2007-11-08 11:49:00 +01:00
Juan Lang ba8d0d0237 crypt32: Save alg IDs in CryptProtectData output. 2007-11-08 11:48:50 +01:00
Juan Lang 0d9a5adb0b crypt32: Describe CryptProtectData data format more accurately. 2007-11-08 11:48:42 +01:00
Juan Lang 62f4022563 crypt32: Avoid misleading fixme when no data are passed to CryptUnprotectData. 2007-10-25 12:54:14 +02:00
Andrew Talbot 79d1d77f74 crypt32: Exclude unused headers. 2007-04-30 12:32:35 +02:00
Andrew Talbot fbbe0039c1 crypt32: Constify some variables. 2007-04-16 12:25:05 +02:00
James Hawkins b96ac00764 crypt32: Remove redundant NULL checks before CryptMemFree (found by Smatch). 2006-10-06 15:20:27 +02:00
Andrew Talbot 950b838e28 crypt32: Cast-qual warnings fix. 2006-09-07 13:44:42 +02:00
Dmitry Timoshkov 081563e7ec Avoid non-portable WCHAR[] constructs. 2006-07-05 11:43:55 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Juan Lang 2d6d002b44 Use CryptMem functions for internal memory allocation. 2005-10-28 10:09:26 +00:00
Kevin Koltzau 95a173a52b Fix warnings in 64bit. 2005-09-02 11:32:17 +00:00
Mike McCormack a107234dcd gcc 4.0 warning fixes. 2005-08-29 09:38:19 +00:00
Francois Gouget 62253b752f Assorted spelling fixes. 2005-05-30 09:56:56 +00:00
Michael Jung 2d18c3aad3 It's sufficienct for Crypt[Un]ProtectData to acquire the crypto
context with the CRYPT_VERIFY_CONTEXT flag set.
2005-05-27 19:22:57 +00:00
Kees Cook 5eb460953f Correct crypt context init in CryptProtectData/CryptUnprotectData. 2005-05-23 09:50:26 +00:00
Kees Cook dc54dd1439 Implement CryptUnprotectData counterpart to CryptProtectData. 2005-05-20 19:23:48 +00:00
Kees Cook 146be8071f Implement CryptProtectData with best-guess encryption. 2005-05-20 19:15:55 +00:00
Kees Cook 0371d86cc1 Implement serialization and helper functions for CryptProtectData. 2005-05-20 18:57:31 +00:00
Kees Cook 919d53f22d Define structures for CryptProtectData/CryptUnprotectData calls. 2005-05-18 15:33:50 +00:00