Qt Cryptographic Architecture
|
#include <QtCrypto>
Signals | |
void | finished () |
Public Member Functions | |
DLGroupContext (Provider *p) | |
virtual void | fetchGroup (DLGroupSet set, bool block)=0 |
virtual void | getResult (BigInteger *p, BigInteger *q, BigInteger *g) const =0 |
virtual bool | isNull () const =0 |
virtual QList< DLGroupSet > | supportedGroupSets () const =0 |
![]() | |
virtual Context * | clone () const =0 |
Provider * | provider () const |
bool | sameProvider (const Context *c) const |
QString | type () const |
Additional Inherited Members | |
![]() | |
Context (const Context &from) | |
Context (Provider *parent, const QString &type) | |
Discrete logarithm provider.
|
inline |
Standard constructor.
p | the provider associated with this context |
|
pure virtual |
The DLGroupSets supported by this object.
|
pure virtual |
Returns true if there is a result to obtain.
|
pure virtual |
Attempt to create P, Q, and G values from the specified group set.
If block is true, then this function blocks until completion. Otherwise, this function returns immediately and finished() is emitted when the operation completes.
If an error occurs during generation, then the operation will complete and isNull() will return true.
set | the group set to generate the key from |
block | whether to block (true) or not (false) |
|
pure virtual |
Obtain the result of the operation.
Ensure isNull() returns false before calling this function.
p | the P value |
q | the Q value |
g | the G value |
|
signal |
Emitted when the fetchGroup() operation completes in non-blocking mode.