Search for usage in LXR

QCA::DLGroupContext Class Referenceabstract

#include <QtCrypto>

Inheritance diagram for QCA::DLGroupContext:


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< DLGroupSetsupportedGroupSets () const =0

Detailed Description

Discrete logarithm provider.

This class is part of the provider plugin interface and should not be used directly by applications. You probably want DLGroup instead.

Definition at line 454 of file qcaprovider.h.

Constructor & Destructor Documentation

◆ DLGroupContext()

QCA::DLGroupContext::DLGroupContext ( Provider * p)

Standard constructor.

pthe provider associated with this context

Definition at line 463 of file qcaprovider.h.

Member Function Documentation

◆ fetchGroup()

virtual void QCA::DLGroupContext::fetchGroup ( DLGroupSet set,
bool block )
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.

setthe group set to generate the key from
blockwhether to block (true) or not (false)

◆ finished

void QCA::DLGroupContext::finished ( )

Emitted when the fetchGroup() operation completes in non-blocking mode.

◆ getResult()

virtual void QCA::DLGroupContext::getResult ( BigInteger * p,
BigInteger * q,
BigInteger * g ) const
pure virtual

Obtain the result of the operation.

Ensure isNull() returns false before calling this function.

pthe P value
qthe Q value
gthe G value

◆ isNull()

virtual bool QCA::DLGroupContext::isNull ( ) const
pure virtual

Returns true if there is a result to obtain.

◆ supportedGroupSets()

virtual QList< DLGroupSet > QCA::DLGroupContext::supportedGroupSets ( ) const
pure virtual

The DLGroupSets supported by this object.

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.