Functions | |
| bool | CryptPlug::decryptMessage (const char *ciphertext, bool cipherIsBinary, int cipherLen, const char **cleartext, const char *certificate, int *errId, char **errTxt) |
| bool | CryptPlug::decryptAndCheckMessage (const char *ciphertext, bool cipherIsBinary, int cipherLen, const char **cleartext, const char *certificate, bool *signatureFound, struct SignatureMetaData *sigmeta, int *errId, char **errTxt, char **attrOrder, const char *unknownAttrsHandling) |
| bool | CryptPlugWrapper::decryptMessage (const char *ciphertext, bool cipherIsBinary, int cipherLen, char **cleartext, const char *certificate, int *errId, char **errTxt) |
| bool | CryptPlugWrapper::decryptAndCheckMessage (const char *ciphertext, bool cipherIsBinary, int cipherLen, char **cleartext, const char *certificate, bool *signatureFound, CryptPlug::SignatureMetaData *sigmeta, int *errId, char **errTxt) |
Detailed Description
The following methods are used to encrypt and decrypt email messages.
Function Documentation
◆ decryptAndCheckMessage() [1/2]
| bool CryptPlugWrapper::decryptAndCheckMessage | ( | const char * | ciphertext, |
| bool | cipherIsBinary, | ||
| int | cipherLen, | ||
| char ** | cleartext, | ||
| const char * | certificate, | ||
| bool * | signatureFound, | ||
| CryptPlug::SignatureMetaData * | sigmeta, | ||
| int * | errId, | ||
| char ** | errTxt | ||
| ) |
Combines the functionality of checkMessageSignature() and decryptMessage().
If certificate is NULL, the default certificate will be used. If sigmeta is non-null, the SignatureMetaData object pointed to will contain meta information about the signature after the function call.
Definition at line 599 of file cryptplugwrapper.cpp.
◆ decryptAndCheckMessage() [2/2]
| bool CryptPlug::decryptAndCheckMessage | ( | const char * | ciphertext, |
| bool | cipherIsBinary, | ||
| int | cipherLen, | ||
| const char ** | cleartext, | ||
| const char * | certificate, | ||
| bool * | signatureFound, | ||
| struct SignatureMetaData * | sigmeta, | ||
| int * | errId, | ||
| char ** | errTxt, | ||
| char ** | attrOrder, | ||
| const char * | unknownAttrsHandling | ||
| ) |
Combines the functionality of checkMessageSignature() and decryptMessage().
If certificate is NULL, the default certificate will be used. If sigmeta is non-null, the SignatureMetaData object pointed to will contain meta information about the signature after the function call.
Definition at line 1031 of file cryptplug.cpp.
◆ decryptMessage() [1/2]
| bool CryptPlugWrapper::decryptMessage | ( | const char * | ciphertext, |
| bool | cipherIsBinary, | ||
| int | cipherLen, | ||
| char ** | cleartext, | ||
| const char * | certificate, | ||
| int * | errId, | ||
| char ** | errTxt | ||
| ) |
Tries to decrypt an email message ciphertext and returns the decrypted message in cleartext.
The certificate is used for decryption. If the message could be decrypted, the function returns true, otherwise false.
Definition at line 586 of file cryptplugwrapper.cpp.
◆ decryptMessage() [2/2]
| bool CryptPlug::decryptMessage | ( | const char * | ciphertext, |
| bool | cipherIsBinary, | ||
| int | cipherLen, | ||
| const char ** | cleartext, | ||
| const char * | certificate, | ||
| int * | errId, | ||
| char ** | errTxt | ||
| ) |
Tries to decrypt an email message ciphertext and returns the decrypted message in cleartext.
The certificate is used for decryption. If the message could be decrypted, the function returns true, otherwise false.
Definition at line 317 of file cryptplug.cpp.
