win32crypt.CryptDecryptAndVerifyMessageSignature
dict = CryptDecryptAndVerifyMessageSignature(EncryptedBlob, DecryptPara , VerifyPara , SignerIndex )
Decrypts and decodes a signed message, and verifies its signatures
Parameters
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