#include <QtCrypto>
Inheritance diagram for QCA::PrivateKey:


Public Member Functions | |
| PrivateKey () | |
| PrivateKey (const QString &fileName, const SecureArray &passphrase=SecureArray()) | |
| PrivateKey (const PrivateKey &from) | |
| PrivateKey & | operator= (const PrivateKey &from) |
| RSAPrivateKey | toRSA () const |
| DSAPrivateKey | toDSA () const |
| DHPrivateKey | toDH () const |
| bool | canDecrypt () const |
| bool | canSign () const |
| bool | decrypt (const SecureArray &in, SecureArray *out, EncryptionAlgorithm alg) |
| void | startSign (SignatureAlgorithm alg, SignatureFormat format=DefaultFormat) |
| void | update (const MemoryRegion &a) |
| QByteArray | signature () |
| QByteArray | signMessage (const MemoryRegion &a, SignatureAlgorithm alg, SignatureFormat format=DefaultFormat) |
| SymmetricKey | deriveKey (const PublicKey &theirs) |
| SecureArray | toDER (const SecureArray &passphrase=SecureArray(), PBEAlgorithm pbe=PBEDefault) const |
| QString | toPEM (const SecureArray &passphrase=SecureArray(), PBEAlgorithm pbe=PBEDefault) const |
| bool | toPEMFile (const QString &fileName, const SecureArray &passphrase=SecureArray(), PBEAlgorithm pbe=PBEDefault) const |
Static Public Member Functions | |
| static QList< PBEAlgorithm > | supportedPBEAlgorithms (const QString &provider=QString()) |
| static PrivateKey | fromDER (const SecureArray &a, const SecureArray &passphrase=SecureArray(), ConvertResult *result=0, const QString &provider=QString()) |
| static PrivateKey | fromPEM (const QString &s, const SecureArray &passphrase=SecureArray(), ConvertResult *result=0, const QString &provider=QString()) |
| static PrivateKey | fromPEMFile (const QString &fileName, const SecureArray &passphrase=SecureArray(), ConvertResult *result=0, const QString &provider=QString()) |
Protected Member Functions | |
| PrivateKey (const QString &type, const QString &provider) | |
cmsexample.cpp, keyloader.cpp, publickeyexample.cpp, rsatest.cpp, and sslservtest.cpp.
|
|
Create an empty private key.
|
|
||||||||||||
|
Import a private key from a PEM representation in a file.
|
|
|
Copy constructor.
|
|
||||||||||||
|
Create a new private key.
|
|
|
Assignment operator.
|
|
|
Interpret / convert the key to an RSA key.
|
|
|
Interpret / convert the key to a DSA key.
|
|
|
Interpret / convert the key to a Diffie-Hellman key.
|
|
|
Test if this key can be used for decryption.
|
|
|
Test if this key can be used for signing.
|
|
||||||||||||||||
|
Decrypt the message.
|
|
||||||||||||
|
Initialise the message signature process.
|
|
|
Update the signature process.
|
|
|
The resulting signature.
|
|
||||||||||||||||
|
One step signature process.
|
|
|
Derive a shared secret key from a public key.
|
|
|
List the supported Password Based Encryption Algorithms that can be used to protect the key.
|
|
||||||||||||
|
Export the key in Distinguished Encoding Rules (DER) format.
|
|
||||||||||||
|
Export the key in Privacy Enhanced Mail (PEM) format.
|
|
||||||||||||||||
|
Export the key in Privacy Enhanced Mail (PEM) format to a file.
|
|
||||||||||||||||||||
|
Import the key from Distinguished Encoding Rules (DER) format.
|
|
||||||||||||||||||||
|
Import the key from Privacy Enhanced Mail (PEM) format.
|
|
||||||||||||||||||||
|
Import the key in Privacy Enhanced Mail (PEM) format from a file.
|
1.4.6