#include <QtCrypto>
Inheritance diagram for QCA::KeyGenerator:
Public Member Functions | |
KeyGenerator (QObject *parent=0) | |
bool | blockingEnabled () const |
void | setBlockingEnabled (bool b) |
bool | isBusy () const |
PrivateKey | createRSA (int bits, int exp=65537, const QString &provider=QString()) |
PrivateKey | createDSA (const DLGroup &domain, const QString &provider=QString()) |
PrivateKey | createDH (const DLGroup &domain, const QString &provider=QString()) |
PrivateKey | key () const |
DLGroup | createDLGroup (QCA::DLGroupSet set, const QString &provider=QString()) |
DLGroup | dlGroup () const |
Public Attributes | |
Q_SIGNALS | __pad0__: void finished() |
Friends | |
class | Private |
This class is used for generating asymmetric keys (public/private key pairs)
|
Create a new key generator.
|
|
Test whether the key generator is set to operate in blocking mode, or not.
|
|
Set whether the key generator is in blocking mode, nor not.
|
|
Test if the key generator is currently busy, or not.
|
|
Generate an RSA key of the specified length. This method creates both the public key and corresponding private key. You almost certainly want to extract the public key part out - see PKey::toPublicKey for an easy way. Key length is a tricky judgment - using less than 2048 is probably being too liberal for long term use. Don't use less than 1024 without serious analysis.
|
|
Generate a DSA key. This method creates both the public key and corresponding private key. You almost certainly want to extract the public key part out - see PKey::toPublicKey for an easy way.
|
|
Generate a Diffie-Hellman key. This method creates both the public key and corresponding private key. You almost certainly want to extract the public key part out - see PKey::toPublicKey for an easy way.
|
|
Return the last generated key. This is really only useful when you are working with non-blocking key generation |
|
Create a new discrete logarithm group.
|
|
The current discrete logarithm group.
|