[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-cryptoapi
Subject:    Re: ASN.1 problems: CryptSignAndEncryptMessage function
From:       Daniel Sie <dsie () MICROSOFT ! COM>
Date:       2000-10-27 18:48:03
[Download RAW message or body]


Hi Félix,

Currently CAPI does not support signed and enveloped. Please see
documentation on CryptMsgOpenToEncode.

However, you can always envelop and then sign it as two separate steps. Not
perfect but might be a work around.

Hope this helps.

Daniel Sie

-----Original Message-----
From: Félix J.García Clemente [mailto:fgarcia@DIF.UM.ES]
Sent: Friday, October 27, 2000 8:12 AM
To: CryptoAPI@DISCUSS.MICROSOFT.COM
Subject: Re: ASN.1 problems: CryptSignAndEncryptMessage function


Hi all again,

The output of the CryptSignAndEncryptMessage function is a PKCS#7
envelopedData.
but then which is the function to get a PKCS#7 signedAndEnvelopedData?

Thanks for any help you can offer.

Félix

"Félix J.García Clemente" wrote:

> Hi all,
>
> Which is the exact output of the CryptSignAndEncryptMessage function? it
> is DER encoded, but is it PKCS#7 data? which is the ASN.1 structure of
> this output?
>
> Using the IAIK toolkit, I am trying to get the ASN.1 structure but I am
> getting ASN1 parsing exceptions.
>
> Thanks for any help you can offer.
>
> Félix
>
> ----------------------------------------------------------------
> Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
> contains important info including how to unsubscribe.  Save time, search
> the archives at http://discuss.microsoft.com/archives/index.html

----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html

----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic