Qt Cryptographic Architecture
|
Go to the documentation of this file.
33 #ifndef QCA_SECUREMESSAGE_H
34 #define QCA_SECUREMESSAGE_H
45 class SecureMessageSystem;
101 PGPKey pgpPublicKey()
const;
106 PGPKey pgpSecretKey()
const;
113 void setPGPPublicKey(
const PGPKey &pub);
120 void setPGPSecretKey(
const PGPKey &sec);
151 void setX509KeyBundle(
const KeyBundle &kb);
156 bool havePrivate()
const;
165 QString name()
const;
169 QSharedDataPointer<Private> d;
238 IdentityResult identityResult()
const;
253 QDateTime timestamp()
const;
257 QSharedDataPointer<Private> d;
401 bool canSignMultiple()
const;
410 bool canClearsign()
const;
421 bool canSignAndEncrypt()
const;
433 bool bundleSignerEnabled()
const;
438 bool smimeAttributesEnabled()
const;
443 Format format()
const;
468 void setBundleSignerEnabled(
bool b);
480 void setSMIMEAttributesEnabled(
bool b);
489 void setFormat(Format f);
609 void startSign(SignMode m = Message);
618 void startVerify(
const QByteArray &detachedSig = QByteArray());
629 void startSignAndEncrypt();
640 void update(
const QByteArray &in);
654 int bytesAvailable()
const;
687 bool waitForFinished(
int msecs = 30000);
697 bool success()
const;
705 Error errorCode()
const;
713 QByteArray signature()
const;
718 QString hashName()
const;
728 bool wasSigned()
const;
736 bool verifySuccess()
const;
757 QString diagnosticText()
const;
777 void bytesWritten(
int bytes);
789 friend class Private;
851 explicit OpenPGP(
QObject *parent =
nullptr,
const QString &provider = QString());
897 explicit CMS(
QObject *parent =
nullptr,
const QString &provider = QString());
IdentityResult
The result of identity verification.
Definition: qca_securemessage.h:190
@ OpenPGP
a Pretty Good Privacy message
Definition: qca_securemessage.h:329
Definition: qca_securemessage.h:54
Error
Errors for secure messages.
Definition: qca_securemessage.h:355
Definition: qca_securemessage.h:886
@ ErrorEncryptUntrusted
encrypting key is untrusted
Definition: qca_securemessage.h:362
Definition: qca_publickey.h:826
@ InvalidSignature
valid key provided, but signature failed
Definition: qca_securemessage.h:193
QCA - the Qt Cryptographic Architecture.
Definition: qca_basic.h:41
QList< SecureMessageSignature > SecureMessageSignatureList
A list of signatures.
Definition: qca_securemessage.h:263
Definition: qca_core.h:1151
@ Valid
indentity is verified, matches signature
Definition: qca_securemessage.h:192
@ Binary
DER/binary.
Definition: qca_securemessage.h:348
@ ErrorCertKeyMismatch
certificate and private key don't match
Definition: qca_securemessage.h:365
@ ErrorSignerInvalid
signing key is invalid in some way
Definition: qca_securemessage.h:360
Definition: qca_cert.h:1890
@ ErrorFormat
input format was bad
Definition: qca_securemessage.h:358
Definition: qca_securemessage.h:803
Definition: qca_securemessage.h:184
@ InvalidKey
invalid key provided
Definition: qca_securemessage.h:194
@ ErrorEncryptExpired
encrypting key is expired
Definition: qca_securemessage.h:361
@ ErrorPassphrase
passphrase was either wrong or not provided
Definition: qca_securemessage.h:357
Definition: qca_cert.h:1207
@ ErrorSignerExpired
signing key is expired
Definition: qca_securemessage.h:359
@ ErrorNeedCard
pgp card is missing
Definition: qca_securemessage.h:364
Format
Formats for secure messages.
Definition: qca_securemessage.h:346
@ ErrorSignatureExpired
signature is expired
Definition: qca_securemessage.h:368
@ Clearsign
the message is clear signed
Definition: qca_securemessage.h:339
Definition: qca_securemessage.h:320
Definition: qca_cert.h:2135
Type
The type of secure message.
Definition: qca_securemessage.h:327
@ ErrorUnknown
other error
Definition: qca_securemessage.h:366
Definition: qca_securemessage.h:840
@ ErrorSignerRevoked
signing key is revoked
Definition: qca_securemessage.h:367
QList< SecureMessageKey > SecureMessageKeyList
A list of message keys.
Definition: qca_securemessage.h:175
@ ErrorEncryptInvalid
encrypting key is invalid in some way
Definition: qca_securemessage.h:363
@ Message
the message includes the signature
Definition: qca_securemessage.h:338
Definition: qca_cert.h:2360
Validity
The validity (or otherwise) of a certificate.
Definition: qca_cert.h:489
@ None
no key
Definition: qca_securemessage.h:62
@ PGP
Pretty Good Privacy key.
Definition: qca_securemessage.h:63
Type
The key type.
Definition: qca_securemessage.h:60
SignMode
The type of message signature.
Definition: qca_securemessage.h:336