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;
400 bool canSignMultiple()
const;
409 bool canClearsign()
const;
420 bool canSignAndEncrypt()
const;
432 bool bundleSignerEnabled()
const;
437 bool smimeAttributesEnabled()
const;
442 Format format()
const;
467 void setBundleSignerEnabled(
bool b);
479 void setSMIMEAttributesEnabled(
bool b);
488 void setFormat(Format f);
608 void startSign(SignMode m = Message);
617 void startVerify(
const QByteArray &detachedSig = QByteArray());
628 void startSignAndEncrypt();
639 void update(
const QByteArray &in);
653 int bytesAvailable()
const;
686 bool waitForFinished(
int msecs = 30000);
696 bool success()
const;
704 Error errorCode()
const;
712 QByteArray signature()
const;
717 QString hashName()
const;
727 bool wasSigned()
const;
735 bool verifySuccess()
const;
756 QString diagnosticText()
const;
776 void bytesWritten(
int bytes);
788 friend class Private;
850 explicit OpenPGP(
QObject *parent =
nullptr,
const QString &provider = QString());
896 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:328
Definition: qca_securemessage.h:54
Error
Errors for secure messages.
Definition: qca_securemessage.h:354
Definition: qca_securemessage.h:885
@ ErrorEncryptUntrusted
encrypting key is untrusted
Definition: qca_securemessage.h:361
Definition: qca_publickey.h:832
@ 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:1163
@ Valid
indentity is verified, matches signature
Definition: qca_securemessage.h:192
@ Binary
DER/binary.
Definition: qca_securemessage.h:347
@ ErrorCertKeyMismatch
certificate and private key don't match
Definition: qca_securemessage.h:364
@ ErrorSignerInvalid
signing key is invalid in some way
Definition: qca_securemessage.h:359
Definition: qca_cert.h:1928
@ ErrorFormat
input format was bad
Definition: qca_securemessage.h:357
Definition: qca_securemessage.h:802
Definition: qca_securemessage.h:184
@ InvalidKey
invalid key provided
Definition: qca_securemessage.h:194
@ ErrorEncryptExpired
encrypting key is expired
Definition: qca_securemessage.h:360
@ ErrorPassphrase
passphrase was either wrong or not provided
Definition: qca_securemessage.h:356
Definition: qca_cert.h:1225
@ ErrorSignerExpired
signing key is expired
Definition: qca_securemessage.h:358
@ ErrorNeedCard
pgp card is missing
Definition: qca_securemessage.h:363
Format
Formats for secure messages.
Definition: qca_securemessage.h:345
@ ErrorSignatureExpired
signature is expired
Definition: qca_securemessage.h:367
@ Clearsign
the message is clear signed
Definition: qca_securemessage.h:338
Definition: qca_securemessage.h:319
Definition: qca_cert.h:2175
Type
The type of secure message.
Definition: qca_securemessage.h:326
@ ErrorUnknown
other error
Definition: qca_securemessage.h:365
Definition: qca_securemessage.h:839
@ ErrorSignerRevoked
signing key is revoked
Definition: qca_securemessage.h:366
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:362
@ Message
the message includes the signature
Definition: qca_securemessage.h:337
Definition: qca_cert.h:2406
Validity
The validity (or otherwise) of a certificate.
Definition: qca_cert.h:496
@ 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:335