certmanager/lib
Encryption and Decryption
[Signing and Encrypting Actions]
Detailed Description
The following methods are used to encrypt and decrypt email messages.
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) |
Function Documentation
bool CryptPlugWrapper::decryptAndCheckMessage | ( | const char * | ciphertext, | |
bool | cipherIsBinary, | |||
int | cipherLen, | |||
char ** | cleartext, | |||
const char * | certificate, | |||
bool * | signatureFound, | |||
CryptPlug::SignatureMetaData * | sigmeta, | |||
int * | errId, | |||
char ** | errTxt | |||
) | [inherited] |
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.
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 | |||
) | [inherited] |
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 1032 of file cryptplug.cpp.
bool CryptPlugWrapper::decryptMessage | ( | const char * | ciphertext, | |
bool | cipherIsBinary, | |||
int | cipherLen, | |||
char ** | cleartext, | |||
const char * | certificate, | |||
int * | errId, | |||
char ** | errTxt | |||
) | [inherited] |
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.
bool CryptPlug::decryptMessage | ( | const char * | ciphertext, | |
bool | cipherIsBinary, | |||
int | cipherLen, | |||
const char ** | cleartext, | |||
const char * | certificate, | |||
int * | errId, | |||
char ** | errTxt | |||
) | [inherited] |
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 318 of file cryptplug.cpp.