Verify message

"Bob Smith" <[email protected]>
Newsgroups gmane.ietf.sfl
Message-ID <[email protected]>
Also, if I ignore the encapsulated digest error, I noticed that the library 
throws the following error in sm_free3.cpp (SMTI_VerifyRSA)
       SME_THROW(22, "RSA OID Unknown or Not Handled Yet!", NULL);

I'm attaching the two files I'm using. SignData.txt is the signature portion 
in base64 and the other, encapcontent.txt, is the encapsulated content.

Bob


Bob wrote:
>
>I'm trying to verify a multi-part signed message and I'm getting the
>following error: "encapsulated content digest != message digest attribute"
>
>I tried using the example provided in the sfl_guide3.doc document. I used
>the following for the encapsulated content:
>-----
>Content-Type: Text/Plain
>Content-Transfer-Encoding: 7bit
>Content-Description: text, unencoded
>
>SignedData5.in Content.
>
>This is a FREE CTI Test content with Elmer Fudd DSA Cert AND Bugs Bunny
>Certs.
>It also handles the alternative API calls for SignedData, so it contains a
>number of
>additional keywords (including content in a file).
>
>-----
>Here's my code...
>
>
>		CSM_Buffer bufMessage(encapcontent, length);
>
>		CSM_ContentInfoMsg contentInfo;
>		contentInfo.SetEncodedCI(buf);
>		if(contentInfo.IsSignedData())
>		{
>			CSM_MsgToVerify msg;
>
>			// Create an empty list of CounterSignature Signer IDs
>			CSM_RecipientIDLst *pCSSIDNoCertsLst =
>				new CSM_RecipientIDLst;
>
>			long lRet = 0L;
>			CSM_Content content(&bufMessage);
>			if ((lRet = msg.PreProc(pCSMIME,
>								&(contentInfo.AccessEncapContent()->m_content),
>								pCSSIDNoCertsLst)) == SM_NO_ERROR)
>			{
>				// set the encapsulated content and the content type
>				msg.SetEncapContent(&bufMessage,
>					CSM_Content::CONTENT_DATA_DATA);
>				long l2 = msg.Verify(pCSMIME);
>
>
>
>Verify is throwing an exception after the following line in
>sm_MsgSignerInfo.cpp:
>
>                if (pMessageDigest->Compare( encapContentDigest ) != 0)
>                {
>
>
>
>I also tried to use Outlook Express to generate the SignerInfo with the 
>same
>results.
>


________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
encapcontent.txt (text/plain, 337 B)
Content-Type: Text/Plain
Content-Transfer-Encoding: 7bit
Content-Description: text, unencoded

SignedData5.in Content.

This is a FREE CTI Test content with Elmer Fudd DSA Cert AND Bugs Bunny 
Certs.
It also handles the alternative API calls for SignedData, so it contains a 
number of
additional keywords (including content in a file).
signdata.txt (text/plain, 2.3 KB)
MIIG6wYJKoZIhvcNAQcCoIIG3DCCBtgCAQExDDAKBggqhkiG9w0CBTALBgkqhkiG9w0BBwGgggUl
MIICfDCCAeWgAwIBAgICCG4wDQYJKoZIhvcNAQEEBQAwgb4xCzAJBgNVBAYTAlpBMRUwEwYDVQQI
EwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEaMBgGA1UEChMRVGhhd3RlIENvbnN1
bHRpbmcxKDAmBgNVBAsTH0NlcnRpZmljYXRpb24gU2VydmljZXMgRGl2aXNpb24xPjA8BgNVBAMT
NVRoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIEtleSAxOTk3LjA2LjI0IDA4OjI3MB4X
DTk3MTAxNDE3MzU0MVoXDTk4MTAxNDE3MzU0MVowRzEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWls
IE1lbWJlcjEkMCIGCSqGSIb3DQEJARYVZGhhcnJpc0BqZ3ZhbmR5a2UuY29tMFwwDQYJKoZIhvcN
AQEBBQADSwAwSAJBAK/wJ1NeEVHdMZ/htvDpatrHaIl+5SuoxGzLwwRXInW58NyD/OFXg0hpMTKX
PeuNMwDCxq+PUT2Htqsdgf6Ox5kCAwEAAaNDMEEwDgYDVR0PAQH/BAQDAgWgMCEGA1UdIwQaMBig
FgQUwnHQEQCl8dtpDBe8inySCQC4tVkwDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQQFAAOBgQAI
uqWIo62jDSAZyDh/0B8AiiMRk7ZGxGDrNdqyzYLELbzr2v1muBA6Yl+ix17dgLEfBB0RbKDRpqqh
3sqko1cJ0X6+kCyKVq3+gd5zi7ehK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VQQLEwhWREEgU2l0ZTEMMAoGA1UECxMDVkRBMRcwFQYDVQQDEw5EYWlzeSBSU0Eg
RXh0czEgMB4GCSqGSIb3DQEJARMRcndjQGpndmFuZHlrZS5jb20CBBKrRc0wCgYIKoZIhvcNAgWg
WzAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMB4GCSqGSIb3DQEJBTERFw85ODA2MTMyMzQ0MjAu
MFowHwYJKoZIhvcNAQkEMRIEEJ6uZVMea4xUA5pptwHLnIUwCwYJKoZIhvcNAQEBBIGACqnNRT+T
oAw0p7ZQUCBTIxxZebeulZHyzSK0KGiqRHSYaYX80owYM+M4mqcXgozprSMmDJKHrmcssPMaUVkM
xa6mVR4spqqmrigeIhH+1yCz5K3QzVKQMvo61bZQRw3uOgp0ixcfHlQqWtPdBxGJPdmtPAzI7m9p
iULa9ddFknQ=
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.