21 #ifndef __KSMIMECRYPTO_H
22 #define __KSMIMECRYPTO_H
25 #include <tqcstring.h>
26 #include <tqptrlist.h>
27 #include "ksslpkcs12.h"
28 #include "ksslcertificate.h"
31 class KSMIMECryptoPrivate;
33 class TDEIO_EXPORT KSMIMECrypto {
38 enum algo { KSC_C_DES3_CBC = 1,
63 rc signMessage(
const TQCString &clearText,
64 TQByteArray &cipherText,
66 const TQPtrList<KSSLCertificate> &certs,
78 rc checkDetachedSignature(
const TQCString &clearText,
79 const TQByteArray &signature,
80 TQPtrList<KSSLCertificate> &foundCerts);
91 rc checkOpaqueSignature(
const TQByteArray &signedText,
93 TQPtrList<KSSLCertificate> &foundCerts);
107 rc encryptMessage(
const TQCString &clearText,
108 TQByteArray &cipherText,
110 const TQPtrList<KSSLCertificate> &recip);
119 rc decryptMessage(
const TQByteArray &cipherText,
120 TQCString &clearText,
124 KSMIMECryptoPrivate *priv;
Dynamically load and wrap OpenSSL.