QCA::DHContext
#include <QtCrypto>

Public Member Functions | |
DHContext (Provider *p) | |
virtual void | createPrivate (const DLGroup &domain, bool block)=0 |
virtual void | createPrivate (const DLGroup &domain, const BigInteger &y, const BigInteger &x)=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 |
![]() | |
PKeyBase (Provider *p, const QString &type) | |
virtual int | bits () const =0 |
virtual bool | canExport () const =0 |
virtual void | convertToPublic ()=0 |
virtual bool | decrypt (const SecureArray &in, SecureArray *out, EncryptionAlgorithm alg) |
virtual SymmetricKey | deriveKey (const PKeyBase &theirs) |
virtual SecureArray | encrypt (const SecureArray &in, EncryptionAlgorithm alg) |
virtual QByteArray | endSign () |
virtual bool | endVerify (const QByteArray &sig) |
virtual bool | isNull () const =0 |
virtual bool | isPrivate () const =0 |
virtual int | maximumEncryptSize (EncryptionAlgorithm alg) const |
virtual void | startSign (SignatureAlgorithm alg, SignatureFormat format) |
virtual void | startVerify (SignatureAlgorithm alg, SignatureFormat format) |
virtual PKey::Type | type () const =0 |
virtual void | update (const MemoryRegion &in) |
Additional Inherited Members | |
![]() | |
void | finished () |
![]() | |
BasicContext (const BasicContext &from) | |
BasicContext (Provider *parent, const QString &type) | |
Detailed Description
Diffie-Hellman provider
- Note
- This class is part of the provider plugin interface and should not be used directly by applications. You probably want DHPublicKey or DHPrivateKey instead.
Definition at line 829 of file qcaprovider.h.
Constructor & Destructor Documentation
◆ DHContext()
|
inline |
Standard constructor.
- Parameters
-
p the provider associated with this context
Definition at line 838 of file qcaprovider.h.
Member Function Documentation
◆ createPrivate() [1/2]
|
pure virtual |
Generate a Diffie-Hellman 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
◆ createPrivate() [2/2]
|
pure virtual |
Create a Diffie-Hellman 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
◆ createPublic()
|
pure virtual |
Create a Diffie-Hellman public key based on its numeric components.
- Parameters
-
domain the domain values to use for generation y the public Y component
◆ domain()
|
pure virtual |
Returns the public domain component of this Diffie-Hellman key.
◆ x()
|
pure virtual |
Returns the private X component of this Diffie-Hellman key.
◆ y()
|
pure virtual |
Returns the public Y component of this Diffie-Hellman key.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 9 2023 03:47:45 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.