qca
QCA::DSAContext Class Reference
[QCA provider API]
DSA provider. More...
#include <QtCrypto>
Inheritance diagram for QCA::DSAContext:

Public Member Functions | |
| DSAContext (Provider *p) | |
| virtual void | createPrivate (const DLGroup &domain, const BigInteger &y, const BigInteger &x)=0 |
| virtual void | createPrivate (const DLGroup &domain, bool block)=0 |
| virtual void | createPublic (const DLGroup &domain, const BigInteger &y)=0 |
| virtual DLGroup | domain () const =0 |
| virtual BigInteger | x () const =0 |
| virtual BigInteger | y () const =0 |
Detailed Description
DSA provider.
- Note:
- This class is part of the provider plugin interface and should not be used directly by applications. You probably want DSAPublicKey or DSAPrivateKey instead.
Definition at line 663 of file qcaprovider.h.
Constructor & Destructor Documentation
| QCA::DSAContext::DSAContext | ( | Provider * | p | ) | [inline] |
Standard constructor.
- Parameters:
-
p the provider associated with this context
Definition at line 672 of file qcaprovider.h.
Member Function Documentation
| virtual void QCA::DSAContext::createPrivate | ( | const DLGroup & | domain, | |
| const BigInteger & | y, | |||
| const BigInteger & | x | |||
| ) | [pure virtual] |
Create a DSA private key based on its numeric components.
- Parameters:
-
domain the domain values to use for generation y the public Y component x the private X component
| virtual void QCA::DSAContext::createPrivate | ( | const DLGroup & | domain, | |
| bool | block | |||
| ) | [pure virtual] |
Generate a DSA private key.
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.
- Parameters:
-
domain the domain values to use for generation block whether to use blocking mode
| virtual void QCA::DSAContext::createPublic | ( | const DLGroup & | domain, | |
| const BigInteger & | y | |||
| ) | [pure virtual] |
Create a DSA public key based on its numeric components.
- Parameters:
-
domain the domain values to use for generation y the public Y component
| virtual DLGroup QCA::DSAContext::domain | ( | ) | const [pure virtual] |
Returns the public domain component of this DSA key.
| virtual BigInteger QCA::DSAContext::x | ( | ) | const [pure virtual] |
Returns the private X component of this DSA key.
| virtual BigInteger QCA::DSAContext::y | ( | ) | const [pure virtual] |
Returns the public Y component of this DSA key.
The documentation for this class was generated from the following file:
KDE 4.4 API Reference