KSMIMECrypto Class Reference
List of all members.Detailed Description
Definition at line 33 of file ksmimecrypto.h.
Public Types | |
enum | algo { KSC_C_DES3_CBC = 1, KSC_C_RC2_CBC_128, KSC_C_RC2_CBC_64, KSC_C_DES_CBC, KSC_C_RC2_CBC_40 } |
enum | rc { KSC_R_OK, KSC_R_OTHER, KSC_R_NO_SSL, KSC_R_NOCIPHER, KSC_R_NOMEM, KSC_R_FORMAT, KSC_R_WRONGKEY, KSC_R_VERIFY } |
Public Member Functions | |
KSMIMECrypto () | |
~KSMIMECrypto () | |
rc | signMessage (const QCString &clearText, QByteArray &cipherText, const KSSLPKCS12 &privKey, const QPtrList< KSSLCertificate > &certs, bool detached) |
rc | checkDetachedSignature (const QCString &clearText, const QByteArray &signature, QPtrList< KSSLCertificate > &foundCerts) |
rc | checkOpaqueSignature (const QByteArray &signedText, QCString &clearText, QPtrList< KSSLCertificate > &foundCerts) |
rc | encryptMessage (const QCString &clearText, QByteArray &cipherText, algo algorithm, const QPtrList< KSSLCertificate > &recip) |
rc | decryptMessage (const QByteArray &cipherText, QCString &clearText, const KSSLPKCS12 &privKey) |
Member Function Documentation
|
Check a detached message signature Will check if messages matches signature and extract certificates Does not check certificates for validity!
Definition at line 333 of file ksmimecrypto.cc. |
|
Check an opaque signed message Will check if signature matches and extract message Does not check certificates for validity!
Definition at line 353 of file ksmimecrypto.cc. |
|
Decrypt a message.
Definition at line 402 of file ksmimecrypto.cc. |
|
Encrypt a message encrypts a message for the given list of recipients and the selected algorithm. Note that any algorithm <128 bytes is insecure and should never be used, even if SMIME-2 requires only RC2-40
Definition at line 377 of file ksmimecrypto.cc. |
|
Sign a message.
Definition at line 306 of file ksmimecrypto.cc. |
The documentation for this class was generated from the following files: