Re: computing hash from a pkcs7 signature
From: Param (Param_at_discussions.microsoft.com)
Date: Wed, 29 Jun 2005 22:08:01 -0700
thanx for ur reply,
here is the code snippet.
1)hMsg = CryptMsgOpenToDecode(MY_ENCODING_TYPE,0,0,0,NULL,NULL);
in step 3 i am getting CRYPT_E_INVALID_MSG_TYPE error.
but this message is pkcs7 signed message and also i am able to verify the
signature using other tools.Is there any wrong in this?
"Michel Gallant" wrote:
> Don't forget that this hash value will include both the content signed, as well
> as any authenticated attributes, if present.
> - Mitch Gallant
> "Param" <Param@discussions.microsoft.com> wrote in message news:1A6A06B0-0021-440A-8E34-277B8E92A604@microsoft.com...
> > Hi,
> > How to get the hash from a pkcs7 signature.
> > Is there any CryptoAPI for this.
> > What about the CryptMsgGetParam()?
> > If this is the correct API , then what I have to pass dwParamType?
> > Thanx in advance