win32crypt.CryptDecryptAndVerifyMessageSignature

dict = CryptDecryptAndVerifyMessageSignature(EncryptedBlob, DecryptPara , VerifyPara , SignerIndex )

Decrypts and decodes a signed message, and verifies its signatures

Parameters

EncryptedBlob : buffer

Encoded message to be decrypted.

DecryptPara : PyCRYPT_DECRYPT_MESSAGE_PARA

Decryption parms

VerifyPara=None : PyCRYPT_VERIFY_MESSAGE_PARA

Signature verification parms

SignerIndex=0 : int

Index of the signer to verify, zero-based.

Comments

Usage is similar to CryptDecodeMessage, except that it undoes all levels of encoding and returns the bare message. This function is the counterpart of CryptSignAndEncryptMessage.

Return Value

Output params are returned as a dict containing:
Decrypted:str,   ##The decrypted message contents
XchgCert:PyCERT_CONTEXT,   ##Certificate whose private key was used to decrypt message
SignerCert:PyCERT_CONTEXT   ##Certificate used to sign message