QCA::DSAContext

Search for usage in LXR

QCA::DSAContext Class Referenceabstract

#include <QtCrypto>

Inheritance diagram for QCA::DSAContext:

Public Member Functions

 DSAContext (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
 
- Public Member Functions inherited from QCA::PKeyBase
 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

- Signals inherited from QCA::PKeyBase
void finished ()
 
- Protected Member Functions inherited from QCA::BasicContext
 BasicContext (const BasicContext &from)
 
 BasicContext (Provider *parent, const QString &type)
 

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 756 of file qcaprovider.h.

Constructor & Destructor Documentation

◆ DSAContext()

QCA::DSAContext::DSAContext ( Provider * p)
inline

Standard constructor.

Parameters
pthe provider associated with this context

Definition at line 765 of file qcaprovider.h.

Member Function Documentation

◆ createPrivate() [1/2]

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
domainthe domain values to use for generation
blockwhether to use blocking mode

◆ createPrivate() [2/2]

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
domainthe domain values to use for generation
ythe public Y component
xthe private X component

◆ createPublic()

virtual void QCA::DSAContext::createPublic ( const DLGroup & domain,
const BigInteger & y )
pure virtual

Create a DSA public key based on its numeric components.

Parameters
domainthe domain values to use for generation
ythe public Y component

◆ domain()

virtual DLGroup QCA::DSAContext::domain ( ) const
pure virtual

Returns the public domain component of this DSA key.

◆ x()

virtual BigInteger QCA::DSAContext::x ( ) const
pure virtual

Returns the private X component of this DSA key.

◆ y()

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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:26 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.