Commit Graph

131 Commits

Author SHA1 Message Date
Juan Lang 13545bee2d crypt32: Fix verifying the hash of a detached hash message. 2008-08-27 13:21:21 +02:00
Juan Lang 0fbef45f55 crypt32: Separate decoding data from finalizing (hashing or signing) it. 2008-08-27 13:21:21 +02:00
Juan Lang a36d8ce611 crypt32: Remove an unneeded helper. 2008-08-21 11:35:23 +02:00
Juan Lang aa265b4165 crypt32: Handle the detached portion of detached signed messages. 2008-08-21 11:35:14 +02:00
Juan Lang 0a8d14c2e6 crypt32: Rewrite CDecodeMsg_Update for better detached data handling. 2008-08-21 11:35:07 +02:00
Juan Lang d3c8b59e02 crypt32: Pass address of blob to store data rather than message to CDecodeMsg_CopyData. 2008-08-21 11:34:58 +02:00
Juan Lang 1b7121e7ad crypt32: Support the KeyId type of signer in CMSG_SIGNER_CERT_INFO_PARAM. 2008-08-21 11:33:48 +02:00
Juan Lang 51b16fb857 crypt32: Support the KeyId type of signer in CMSG_SIGNER_INFO_PARAM. 2008-08-21 11:33:39 +02:00
Juan Lang 57a85f0d6b crypt32: Implement CMSG_CMS_SIGNER_INFO_PARAM. 2008-08-21 11:33:30 +02:00
Juan Lang 595bae3ef3 crypt32: Test and correct encoding of signed CMS messages. 2008-08-21 11:33:03 +02:00
Juan Lang 282eb73bc3 crypt32: Use CMS messages rather than PKCS messages internally. 2008-08-21 11:32:53 +02:00
Juan Lang 4fa4e5a793 crypt32: Allow CMS fields to be set when opening a signed message to encode. 2008-08-20 10:24:21 +02:00
Juan Lang 3297080045 crypt32: Allow messages to be opened when compiled with CMSG_SIGNED_ENCODE_INFO_HAS_CMS_FIELDS if CMS fields aren't actually used. 2008-08-20 10:24:15 +02:00
Juan Lang 427b3fbd5d crypt32: Allow messages to be opened when compiled with CMSG_SIGNER_ENCODE_INFO_HAS_CMS_FIELDS if CMS fields aren't actually used. 2008-08-20 10:24:08 +02:00
Juan Lang 8f74b60f87 crypt32: Add stub for CryptMsgVerifyCountersignatureEncodedEx. 2008-08-19 12:19:50 +02:00
Juan Lang fc8545b43a crypt32: Implement CryptMsgGetAndVerifySigner. 2008-08-18 17:15:55 +02:00
Juan Lang 35b126a033 crypt32: Add stub for CryptMsgGetAndVerifySigner. 2008-08-18 17:15:55 +02:00
Juan Lang c1a69ee36d crypt32: Move simplified message functions to their own file. 2008-07-29 11:51:45 +02:00
Alexandre Julliard ef07d83405 Include wine/port.h everywhere we use exceptions. 2008-04-29 20:18:49 +02:00
Rob Shearman 3f2ea57013 crypt32: Decode the message content on finishing in CDecodeMsg_Update for the streamed case as well as the non-streamed case. 2008-04-24 11:49:31 +02:00
Juan Lang 44f2517335 crypt32: Allow one update to a decode message after the final update if it's a detached message. 2008-03-26 10:33:16 +01:00
Juan Lang 856270972f crypt32: Keep track of state in each message type's update function rather than in CryptMsgUpdate. 2008-03-26 10:33:09 +01:00
Andrew Talbot 70c4b66781 crypt32: Assign to structs instead of using memcpy. 2008-02-15 12:05:47 +01:00
Rob Shearman d9891887c7 crypt32: Fix function declaration - WINAPI should come after the return type. 2008-02-15 11:06:15 +01:00
Juan Lang 8882936073 crypt32: Keep signer handle count separate from signer info. 2007-10-19 14:23:14 +02:00
Juan Lang cc88619f86 crypt32: Get rid of an unused key. 2007-10-19 14:21:55 +02:00
Juan Lang 6763841e19 crypt32: Make sure a signed encode message's signer info is always initialized. 2007-10-19 14:21:51 +02:00
Juan Lang 57b13b37d5 crypt32: Add an extra pointer alignment to avoid possible memory corruption. 2007-10-09 17:52:46 +02:00
Juan Lang 2fb3d53347 crypt32: Correct copying a signer info's attributes. 2007-10-01 12:33:35 +02:00
Juan Lang 36886f7dd1 crypt32: Add/improve some traces. 2007-09-28 11:30:40 +02:00
Juan Lang 91f2a4d687 crypt32: Fix alignment for 64-bit systems. 2007-09-19 11:41:18 +02:00
Juan Lang 71b5ba0336 crypt32: Implement streamed encoding of an indefinite-length data message. 2007-09-19 11:40:44 +02:00
Juan Lang 19956d6e97 crypt32: Pass length rather than entire message to CRYPT_EncodeContentLength. 2007-09-19 11:40:38 +02:00
Andrew Talbot f19086e9d3 crypt32: Fix some memory leaks. 2007-09-17 13:48:32 +02:00
Juan Lang ff26d428e3 crypt32: Partially implement CMSG_CTRL_VERIFY_SIGNATURE_EX. 2007-08-27 11:59:19 +02:00
Juan Lang f5b4806159 crypt32: Implement CryptVerifyMessageSignature. 2007-08-23 12:38:05 +02:00
Juan Lang 3a9e1d6648 crypt32: Test and correct verifying the signature of a valid signed message. 2007-08-23 12:37:59 +02:00
Juan Lang 6acd761646 crypt32: Explicitly terminate loop when a matching signer cert is found. 2007-08-22 12:59:32 +02:00
Juan Lang d4c318f295 crypt32: Only free allocated handles. 2007-08-22 12:34:04 +02:00
Juan Lang e52c80e53b crypt32: Test and implement CryptGetMessageSignerCount. 2007-08-22 12:33:59 +02:00
Juan Lang b9038be1ff crypt32: Implement CryptGetMessageCertificates. 2007-08-22 12:33:55 +02:00
Juan Lang b7e420429d crypt32: Implement verifying a decoded signed message's signature. 2007-08-21 22:09:35 +02:00
Juan Lang d3431271fa crypt32: Test and implement getting the computed hash from a decoded signed message. 2007-08-21 22:09:31 +02:00
Juan Lang ed6fbb2712 crypt32: Update a hash message's hash handles when decoding it. 2007-08-21 22:09:27 +02:00
Juan Lang d2dc7d78a9 crypt32: Move signed message data functions together. 2007-08-21 22:09:19 +02:00
Juan Lang f1f8e87b33 crypt32: Make constructing handles a member of signed msg data. 2007-08-21 22:09:15 +02:00
Juan Lang 07ba16c291 crypt32: Use a helper function to allocate signer handles. 2007-08-21 22:09:12 +02:00
Juan Lang 1f9d9be762 crypt32: Don't keep an unneeded copy of the crypto provider for each signer. 2007-08-21 22:09:08 +02:00
Juan Lang bfbc159d1e crypt32: Separate construction of signer handles from signer info. 2007-08-21 22:09:03 +02:00
Juan Lang c4dd74d84c crypt32: Add a helper function to construct a signer handles structure. 2007-08-21 22:08:59 +02:00