CoSign LARGE files WITHOUT large memory requirements

From: Alon Bar-Lev (alon_at_xor-t.com)
Date: 03/22/05


Date: Tue, 22 Mar 2005 20:40:42 +0200

Hello,

My mission is to cosign a large attached signature without allocated memory
at the size of the content.

I am trying to cosign a large PKCS#7 file, I use CryptOpenMsgToDecode and
streams in order to do so.
After cosigning, I use CryptMsgGetParam with CMSG_ENCODED_MESSAGE I get a
detached signature.
Now I need to take the original data and the detached signature and combain
them into one attached PKCS#7 file.

I couldn't figure out how to use CryptMsgOpenToEncode or any other relevant
CryptMsg API in order to do that.

Can anyone help?

Best Regards,
Alon Bar-Lev



Relevant Pages

  • Re: CoSign LARGE files WITHOUT large memory requirements
    ... You will have to load the entire message into memory. ... > My mission is to cosign a large attached signature without allocated ... I use CryptMsgGetParam with CMSG_ENCODED_MESSAGE I get a ... > detached signature. ...
    (microsoft.public.platformsdk.security)
  • Re: CryptMsgGetParam ( CMSG_ENCRYPTED_DIGEST) - big endian?
    ... The content that has the detached signature is inside a file and here are ... The digital signature bytes after reversing the complete sequence obtained ... Invoke CryptMsgOpenToDecode, CryptMsgUpdate and CryptMsgGetParam for ... Reverse the bytes of the digital signature obtained earlier. ...
    (microsoft.public.platformsdk.security)
  • Cosigning PKCS#7 attached signature without large memory requirements
    ... My mission is to cosign a large attached signature without allocated memory ... I use CryptMsgGetParam with CMSG_ENCODED_MESSAGE I get a ... Now I need to take the original data and the detached signature and combain ...
    (microsoft.public.platformsdk.security)
  • Cosigning large attached PKCS#7 using streams
    ... I am trying to cosign a large PKCS#7 file, I must use streams in order to do ... I use CryptMsgGetParam with CMSG_ENCODED_MESSAGE I get a ... Now I need to take the original data and the detached signature and combain ...
    (microsoft.public.platformsdk.security)
  • Cosigning large attached PKCS#7 using streams
    ... I am trying to cosign a large PKCS#7 file, I must use streams in order to do ... I use CryptMsgGetParam with CMSG_ENCODED_MESSAGE I get a ... Now I need to take the original data and the detached signature and combain ...
    (microsoft.public.platformsdk.security)