Hello I am using the following function in MS VS 8 for verifying a digital signature.
Code: CryptVerifyMessageSignature( &VerifyParams, 0, pSignedMessageBlob->pbData, pSignedMessageBlob->cbData, NULL, &cbDecodedMessageBlob, NULL) I have initialized the object VerifyParams of type CRYPT_VERIFY_MESSAGE_PARA as below. Code: VerifyParams.cbSize = sizeof(CRYPT_VERIFY_MESSAGE_PARA); VerifyParams.dwMsgAndCertEncodingType = MY_ENCODING_TYPE; VerifyParams.hCryptProv = 0; VerifyParams.pfnGetSignerCertificate = NULL; VerifyParams.pvGetArg = NULL; The function above returns the code 8009310b, which i searched is CRYPT_E_ASN1_BADTAG, means "ASN.1 bad tag value met". I dont know how to remove this error? Can anybody help me? There is no error if i use this function for verification in the same program with the one which creates digital signature. (I am transmitting the digital signature using sockets to server, where I am trying to verify it). regards, Wilayat Khan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [EMAIL PROTECTED] More information about Crypto++ and this group is available at http://www.cryptopp.com. -~----------~----~----~----~------~----~------~--~---
