Commit Graph

319 Commits

Author SHA1 Message Date
Mikhail Maroukhine dc525dabd6 rsaenh: Fix compiler warnings with flag -Wcast-qual. 2010-03-29 12:16:00 +02:00
Michael Stefaniuc f2a331cd0c rsaenh: Remove superfluous casts of zero. 2010-03-29 11:50:04 +02:00
Francois Gouget 716d6dcce0 rsaenh: Use NULL instead of casting 0. 2010-03-22 10:48:14 +01:00
Paul Vriens 3a5c925250 rsaenh/tests: Fix some test failures on XP (pre SP3). 2010-03-17 10:07:22 +01:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01: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
Juan Lang 972031643f rsaenh: Add simple tests for SHA-256, SHA-384, and SHA-512. 2010-03-15 15:00:58 +01:00
Juan Lang 5ebe73ef61 rsaenh: Fix some test failures on Win9x/NT4. 2010-03-15 15:00:48 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Paul Vriens 8a737bc1ba rsaenh/tests: Don't check result twice (Coccinelle). 2010-01-14 09:11:07 -06:00
Juan Lang f9a475c808 rsaenh: Fix memory leak reading stored keys. 2009-12-10 11:56:10 +01:00
Juan Lang 71880e4818 rsaenh: Free a verify context's keys when it's destroyed. 2009-12-09 13:13:42 +01:00
Juan Lang ac4ac88a51 rsaenh: Use helper function to release and install a key into a crypt provider. 2009-12-09 13:13:36 +01:00
Juan Lang 71b4ac9c71 rsaenh/tests: Fix memory leak. 2009-12-09 12:02:47 +01:00
Juan Lang d69b00d630 rsaenh/tests: Fix memory leaks. 2009-12-07 09:49:07 +01:00
Juan Lang 035c323054 rsaenh: Fix memory leak in CPSignHash. 2009-12-07 09:49:07 +01:00
Alexandre Julliard b402b78780 rsaenh: Fix padding bytes check for 0-byte payload. 2009-12-02 14:59:56 +01:00
Paul Vriens 8fe8d61a62 rsaenh/tests: Fix some test failures on W2K. 2009-11-19 11:45:54 +01:00
Paul Vriens 3323ae9dd6 rsaenh/tests: Fix some test failures on Wow64. 2009-11-18 11:20:52 +01:00
Francois Gouget 6e407cccb8 rsaenh/tests: Add a trailing '\n' to an ok() call. 2009-11-16 12:43:06 +01:00
Juan Lang 9369dfbab6 rsaenh/tests: Fix length of copied buffer. 2009-11-12 13:12:04 +01:00
Juan Lang 314033b992 rsaenh/tests: Fix a couple typos. 2009-11-11 10:54:32 +01:00
Juan Lang 1547b47411 rsaenh/tests: Fix some test failures. 2009-11-11 10:54:00 +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 b1beb212db rsaenh/tests: Add round-trip test of RSA. 2009-11-09 19:33:41 +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
Juan Lang 812fdca9d6 rsaenh: Test exporting an RSA private key with the most significant bit set. 2009-11-04 13:07:55 +01:00
Juan Lang 9d9ae93a58 rsaenh: Revert part of d3c482250a. 2009-10-22 10:55:49 +02:00
Juan Lang a48aae26e6 rsaenh: Fail if CRYPT_IPSEC_HMAC_KEY is passed to CryptImportKey. 2009-10-22 10:55:42 +02:00
Juan Lang 48975c38e0 rsaenh: Store key when algid is a CALG_RSA_* algid, too. 2009-10-21 16:05:58 +02:00
Juan Lang 7a6381e852 rsaenh: Make the enhanced crypto provider the default. 2009-10-20 13:47:14 +02:00
Juan Lang 9a72789686 rsaenh: Add some traces to key importing. 2009-10-20 13:47:04 +02:00
Dmitry Timoshkov d3c482250a rsaenh: Fix the accepted RC2 key length, based on a test case by Dan Kegel. 2009-10-13 14:07:00 +02:00
Juan Lang d2827be07f rsaenh: Implement exporting PLAINTEXTKEYBLOBs. 2009-08-10 13:09:13 +02:00
Juan Lang ff6328efcc rsaenh: Implement importing PLAINTEXTKEYBLOBs. 2009-08-10 13:09:06 +02:00
Francois Gouget 53f3f441fb rsaenh: Make the mpi functions static, remove mp_signed_bin_size() as it is unused. 2009-05-26 14:09:51 +02:00
Francois Gouget 96848a0605 Remove spaces before '\n's. 2009-03-09 12:05:58 +01:00
Andrew Talbot 250b699354 rsaenh: Replace malloc/realloc with HeapAlloc/HeapReAlloc. 2009-02-16 15:35:14 +01:00
Alexandre Julliard 7682bc6f88 rsaenh: Rename the HANDLETABLE structure to avoid conflicts with wingdi.h. 2009-02-09 13:03:35 +01:00
Francois Gouget d13fed31fd rsaenh: {alloc,release}_handle_table() are not used so remove them. 2009-02-05 13:14:40 +01:00
Juan Lang 8b0f2e3e4b rsaenh: Fix failing tests on Windows ME. 2009-02-04 12:25:00 +01:00
Paul Vriens ce20f6c687 rsaenh/tests: Fix the remaining test failures on Win9x up to W2K. 2009-01-30 11:45:32 +01:00
Juan Lang e5fcbad5b6 rsaenh: Fix some recently introduced test failures on Win9x/NT4. 2009-01-30 11:44:52 +01:00
Juan Lang 674786527a rsaenh: Also write a key's permissions when it's being stored to the registry. 2009-01-29 12:40:09 +01:00
Juan Lang 2edda7208f rsaenh: Load/store key permissions along with key pair value. 2009-01-29 12:40:03 +01:00
Juan Lang bd41f77d3d rsaenh: Use key spec rather than char * to identify a key pair. 2009-01-29 12:39:55 +01:00
Juan Lang fbc26f3855 rsaenh: Don't store a key to the registry when it's being read from the registry. 2009-01-29 12:39:49 +01:00
Juan Lang 4eb1ee4277 rsaenh: Store a key's value to the registry when a key is imported. 2009-01-29 12:39:45 +01:00
Juan Lang 17da3004ef rsaenh: Split CPImportKey into a helper function for each type of key supported. 2009-01-29 12:39:40 +01:00
Juan Lang 30764edd12 rsaenh: Use helper function to install keys. 2009-01-29 12:22:28 +01:00
Juan Lang 8f4a491489 rsaenh: Separate storing a key container's keys from releasing them. 2009-01-29 12:22:21 +01:00
Juan Lang 21a3ae0b7c rsaenh: Add a test for importing a key into a container and acquiring a container with the same name before the original container is released. 2009-01-29 12:22:15 +01:00
Juan Lang e8ea6700ca rsaenh: Honor a key's permissions when exporting a private key. 2009-01-29 12:22:07 +01:00
Juan Lang 8265569e99 rsaenh: Split CPExportKey into helper functions for each export type. 2009-01-29 12:21:59 +01:00
Juan Lang 0eb9ae17fe rsaenh: Fix CryptSetKeyParam for KP_PERMISSIONS. 2009-01-29 12:21:50 +01:00
Juan Lang 1cc5886771 rsaenh: Honor the CRYPT_EXPORTABLE flag to CryptAcquireContext and CryptGenKey. 2009-01-29 12:21:45 +01:00
Juan Lang cc1e6eed7e rsaenh: Honor the CRYPT_EXPORTABLE flags to CryptImportKey. 2009-01-29 12:21:38 +01:00
Juan Lang ba01e7b2b9 rsaenh: Add tests for key permissions. 2009-01-29 12:21:25 +01:00
Andrew Talbot 149ee9bf3b rsaenh: Declare some functions static. 2009-01-23 13:12:22 +01:00
Andrew Talbot 4be41680a3 rsaenh: Declare some functions static. 2009-01-22 12:04:24 +01:00
Andrew Talbot 98dad20925 rsaenh: Declare some functions static. 2009-01-21 10:25:16 +01:00
Andrew Talbot 59a4a5d935 rsaenh: Declare some functions static. 2009-01-20 12:30:34 +01:00
Michael Stefaniuc 16042cff7b rsaenh: Remove superfluous pointer casts. 2009-01-13 15:25:46 +01:00
Paul Vriens a3daf27b7e rsaenh/tests: Fix a test failure on NT4. 2008-12-11 11:50:19 +01:00
Michael Stefaniuc 50b45a78a3 rsaenh: Do not cast zero. 2008-12-08 12:04:13 +01:00
Paul Vriens d211ddbfad rsaenh/tests: Fix a test failure on Win98. 2008-11-28 12:56:43 +01:00
Paul Vriens 26d565ac1b rsaenh/tests: Fix a test failure on NT4 and below. 2008-11-28 12:56:38 +01:00
Paul Vriens c3072bcaf3 rsaenh/tests: Fix a test failure on NT4 and below. 2008-11-28 12:56:33 +01:00
Paul Vriens 489e59f83d rsaenh/tests: Fix a test failure on W2K and below. 2008-11-26 12:12:54 +01:00
Paul Vriens 6d9bca7d94 rsaenh/tests: Use a 40-bit session key instead of 56-bit. 2008-11-26 12:12:48 +01:00
Paul Vriens 87e7c72f26 rsaenh/tests: Fix a test failure on W2K and below. 2008-11-26 12:12:42 +01:00
Paul Vriens 5da0debbe6 rsaenh/tests: Use a 40-bit session key instead of 56-bit. 2008-11-26 12:12:37 +01:00
Paul Vriens 6a8d623a56 rsaenh/tests: Fix a test failure on W2K and below. 2008-11-26 12:12:30 +01:00
Juan Lang 7f246421d1 rsaenh: Fix some test failures on older versions of Windows. 2008-11-24 14:34:02 +01:00
Andrew Talbot c44dcda12b rsaenh: Sign-compare warnings fix. 2008-11-10 11:15:03 +01:00
Paul Vriens 9a2fdfd66b rsaenh/tests: Fix a test failure on NT4 and below. 2008-11-06 11:10:23 +01:00
Michael Stefaniuc 4f199a10ad Remove the remaining casts of NULL. 2008-11-03 13:42:09 +01:00
Michael Stefaniuc 9cafb9c168 rsaenh: Use 0 instead of casting NULL to a handle of integer type. 2008-10-27 11:28:09 +01:00
Rob Shearman b069b53bd9 rsaenh: Add a value to the empty braces in the initialiser for aOIDDescriptor in build_hash_signature.
An empty initialiser isn't supported on some compilers like MSVC.
2008-10-15 16:45:09 +02:00
Rob Shearman 0a2efbb1cc rsaenh: Make some functions used in only one file static. 2008-10-15 15:22:58 +02:00
Juan Lang 408f3d96c5 rsaenh: Test and correct the maximum allowable salt length. 2008-07-29 12:20:26 +02:00
Austin English 7bdee81c05 rsaenh: Fix a couple failing tests on 2k. 2008-06-09 12:37:24 +02:00
Vijay Kiran Kamuju e666bb2a5c rsaenh: Fix AES provider keys for Windows XP. 2008-06-04 12:41:01 +02:00
Andrew Talbot 0ed3456779 rsaenh: Remove unused file-static variable. 2008-05-21 11:36:57 +02:00
Francois Gouget 633ee950a1 Assorted spelling fixes. 2008-05-07 12:07:11 +02:00
Austin English 313a85f163 Spelling fixes. 2008-04-17 12:25:57 +02:00
Paul Vriens 66c022c28c rsaenh/tests: Fix a test on W2K and above. 2008-04-07 11:24:01 +02:00
Andrew Talbot 722b659064 rsaenh: Remove tentative declaration of static array with no size specifier. 2008-04-04 11:04:24 +02:00
Paul Vriens 9666218ca8 rsaenh/tests: Add a few skips for non implemented parameters. 2008-04-04 11:02:33 +02:00
Paul Vriens 51ee956b95 rsaenh: Add some new flags to wincrypt.h and use one of them. 2008-04-03 11:30:20 +02:00
Paul Vriens 77d912e541 rsaenh/tests: Fix a typo. 2008-04-03 11:30:15 +02:00
Andrew Talbot 038169b6a7 rsaenh: Assign to structs instead of using memcpy. 2008-03-17 11:41:17 +01:00
Rob Shearman 48000893f9 makefiles: Simplify the use of the IMPORTLIB variable in the DLL makefiles.
Only specify the root to keep platform-specifics out of the individual 
DLL makefiles.
2008-03-04 20:55:01 +01:00
Juan Lang ad6a7a788d rsaenh: Merge the encrypting and decrypting states, as encrypting and decrypting are allowed with the same key. 2008-02-08 11:02:25 +01:00
Andrew Talbot 303bff281c rsaenh: Remove unneeded casts. 2008-01-18 12:43:37 +01:00
Michael Stefaniuc 8423809f9f rsaenh/tests: Remove an unused global variable. 2007-12-14 12:25:59 +01:00
Michael Stefaniuc ee54d92c40 rsaenh/tests: Remove duplicate abPlainPrivateKey variable. 2007-12-14 12:25:55 +01:00
Rob Shearman 0768dc3beb rsaenh: Fix some memory leaks in the tests.
Remove an incorrect CryptProviderRelease call.
2007-12-11 18:07:08 +01:00
Rob Shearman 5d88c0cbad rsaenh: Fix some leaks of the provider handle in the rsaenh tests. 2007-12-07 17:06:08 +01:00
Juan Lang 83f74fef2c crypt32: Support setting the salt value through KP_SALT_EX. 2007-11-29 13:34:56 +01:00
Juan Lang c9e0fa442a crypt32: Support getting and setting the KP_PADDING key param. 2007-11-29 13:34:50 +01:00
Juan Lang 749a7adaf4 rsaenh: Empty container names are allowed for CRYPT_VERIFYCONTEXT contexts. 2007-11-28 11:20:20 +01:00
Vijay Kiran Kamuju 1dbaa8c619 rsaenh: Add implementation of Enhanced RSA AES Provider. 2007-11-21 13:07:41 +01:00
Vijay Kiran Kamuju ea1f8c7ad8 rsaenh: Add tests for RSA_AES provider. 2007-11-21 13:02:26 +01:00
Gerald Pfeifer d9f5817e8a rsaenh/tests: Fix const-ness of parameters to printBytes(). 2007-11-19 13:51:11 +01:00
Vijay Kiran Kamuju fc90d2bd45 rsaenh: Add a few more tests which check the decryption strings. 2007-11-16 13:23:37 +01:00
Juan Lang f6833c4d09 rsaenh: Check pad bytes for consistency when decrypting. 2007-11-12 12:57:15 +01:00
Juan Lang 61d58c15aa rsaenh: Fix a comment. 2007-11-08 11:48:38 +01:00
Juan Lang 8788cca0ef rsaenh: Use LocalFree to free memory return by Crypt(Un)ProtectData. 2007-11-07 13:13:17 +01:00
Juan Lang 5408471b23 rsaenh: Use helper function to read key pairs from registry. 2007-11-07 13:13:12 +01:00
Juan Lang 9260fcf7ac rsaenh: Use helper function to delete a key container's registry key. 2007-11-07 13:13:03 +01:00
Juan Lang 88405a68e7 rsaenh: Use helper function to open a key container's registry key. 2007-11-07 13:12:53 +01:00
Juan Lang 060ed4cf02 rsaenh: Use helper function to create a container's registry key. 2007-11-07 13:12:47 +01:00
Juan Lang 58269419e5 rsaenh: Use helper function to persist keys. 2007-11-07 13:10:32 +01:00
Alexandre Julliard 0590fe2ecf Make some variables static. 2007-11-06 14:38:54 +01:00
Michael Jung b3a3804be8 rsaenh: Enlarge buffer in test_enum_container. Fixes two test failures on Vista. 2007-10-18 12:07:20 +02:00
Juan Lang f0d2766fdc rsaenh: Validate pad byte when decrypting a block cipher. 2007-09-12 11:33:11 +02:00
Juan Lang 41d057837c rsaenh: Support setting the effective key length of RC2 keys. 2007-09-11 12:35:22 +02:00
Juan Lang 5666efb137 rsaenh: Call setup_key whenever the IV is reset. 2007-09-11 12:35:18 +02:00
Juan Lang 16c40d9112 rsaenh: Reorder padding code to avoid unnecessary comparison. 2007-09-11 12:35:14 +02:00
Andrew Talbot c94f113f4f rsaenh: Constify some variables. 2007-08-24 10:57:16 +02:00
Andrew Talbot 45c5b11fd6 rsaenh: Constify some variables. 2007-08-23 12:39:11 +02:00
Juan Lang cd3954e7fd rsaenh: Get rid of the hash idle state, native doesn't behave as though it has one. 2007-07-11 12:00:38 +02:00
Maarten Lankhorst 4e0ef1cb38 rsaenh: Allow CRYPT_NEWKEYSET and CRYPT_VERIFYCONTEXT at same time when acquiring context. 2007-06-13 12:06:17 +02:00
Andrew Talbot 42fd48f38e rsaenh: Exclude unused header. 2007-05-18 14:11:29 +02:00
Mounir IDRASSI e61eddd6a5 rsaenh: Fix crash in RSAENH_CPVerifySignature if pbSignature is set to NULL or if dwSigLen is lesser than the expected value. 2007-05-15 12:23:09 +02:00
Mounir IDRASSI f772fb9898 rsaenh: Add support for mandatory parameters to RSAENH_CPGetProvParam. 2007-05-11 11:20:13 +02:00
Mounir IDRASSI 56a1326a8b rsaenh: Use the correct registry key in RSAENH_CPAcquireContext. 2007-05-08 12:23:06 +02:00
Mounir IDRASSI a7d897d76a rsaenh: Fix read_key_container bug that prevents CryptAcquireContext from correctly loading the keys. 2007-05-07 20:35:59 +02:00
Alexandre Julliard 69a88a9d40 Fix minor differences in the formatting of the license notices. 2007-05-04 12:08:15 +02:00
Yuval Fledel 1cdc057091 rsaenh: Convert handle type from unsigned int to HCRYPTKEY. 2007-04-23 16:17:54 +02:00
Jan Zerebecki 021b004cf5 rsaenh: Add DebugInfo to critical sections. 2007-03-12 13:40:10 +01:00
Alexandre Julliard 9dd1f1e341 Added version information for a number of dlls. 2007-03-07 21:25:16 +01:00
Andrew Talbot a228eefe6d rsaenh: Declare some functions static. 2007-01-25 12:04:38 +01:00
Dmitry Timoshkov c9842d2ca9 rsaenh: Make some data const and static. 2006-12-14 20:11:37 +01:00
Andrew Talbot 5319668a30 rsaenh: Cast-qual warning fix. 2006-11-14 11:34:37 +01:00
Paul Vriens 9fa27f3be3 rsaenh: Move type-check before len-check (Coverity). 2006-11-13 12:58:53 +01:00
Michael Stefaniuc 7c7e1943ca rsaenh: Win64 printf format warning fixes. 2006-10-09 12:56:13 +02:00
Paul Vriens 283fc8a8ad rsaenh: Win64 printf format warning fixes. 2006-10-09 12:54:21 +02:00
Paul Vriens 038ede615e rsaenh: Make hmac test run on all windows versions. 2006-10-09 12:54:05 +02:00
Francois Gouget 17aa2c82d2 Add missing '\n's to ok() calls. 2006-10-03 15:56:16 +02:00
Karsten Elfenbein c156c1e496 rsaenh/tests: import & export of a plaintext public key + algID check. 2006-10-02 11:55:18 +02:00
Michael Stefaniuc 85ce5117c5 Add a WINE_NO_LONG_INT define to many makefiles to ease the transition of DWORD/LONG/ULONG from long to int. 2006-09-29 16:08:30 +02: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
Andrew Talbot c4daa191b0 rsaenh: Cast-qual warnings fix. 2006-09-27 09:40:32 +02:00
Andrew Talbot b3be5bcd1c rsaenh: Cast-qual warnings fix. 2006-09-27 09:40:26 +02:00
Alexandre Julliard 32ab895e46 makefiles: Generate the dependencies line to avoid some code duplication. 2006-09-14 09:38:16 +02:00