(pEncryptPara, cRecipientCert, rgpRecipientCert, pbToBeEncrypted, cbToBeEncrypted, pbEncryptedBlob, pcbEncryptedBlob)
| 122 | |
| 123 | @Crypt32Proxy() |
| 124 | def CryptEncryptMessage(pEncryptPara, cRecipientCert, rgpRecipientCert, pbToBeEncrypted, cbToBeEncrypted, pbEncryptedBlob, pcbEncryptedBlob): |
| 125 | if isinstance(pbToBeEncrypted, windows.pycompat.anybuff): |
| 126 | # Transform string to array of byte |
| 127 | pbToBeEncrypted = (gdef.BYTE * len(pbToBeEncrypted))(*bytearray(pbToBeEncrypted)) |
| 128 | if cbToBeEncrypted is None and pbToBeEncrypted is not None: |
| 129 | cbToBeEncrypted = len(pbToBeEncrypted) |
| 130 | return CryptEncryptMessage.ctypes_function(pEncryptPara, cRecipientCert, rgpRecipientCert, pbToBeEncrypted, cbToBeEncrypted, pbEncryptedBlob, pcbEncryptedBlob) |
| 131 | |
| 132 | @Crypt32Proxy() |
| 133 | def CryptDecryptMessage(pDecryptPara, pbEncryptedBlob, cbEncryptedBlob, pbDecrypted, pcbDecrypted, ppXchgCert): |
nothing calls this directly
no outgoing calls
no test coverage detected