QCA::KDFContext

Search for usage in LXR

QCA::KDFContext Class Referenceabstract

#include <QtCrypto>

Inheritance diagram for QCA::KDFContext:

Public Member Functions

 KDFContext (Provider *p, const QString &type)
 
virtual SymmetricKey makeKey (const SecureArray &secret, const InitializationVector &salt, unsigned int keyLength, unsigned int iterationCount)=0
 
virtual SymmetricKey makeKey (const SecureArray &secret, const InitializationVector &salt, unsigned int keyLength, int msecInterval, unsigned int *iterationCount)=0
 

Additional Inherited Members

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

Detailed Description

Key derivation function provider.

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

Definition at line 361 of file qcaprovider.h.

Constructor & Destructor Documentation

QCA::KDFContext::KDFContext ( Provider p,
const QString type 
)
inline

Standard constructor.

Parameters
pthe provider associated with this context
typethe name of the KDF provided by this context (including algorithm)

Definition at line 371 of file qcaprovider.h.

Member Function Documentation

virtual SymmetricKey QCA::KDFContext::makeKey ( const SecureArray secret,
const InitializationVector salt,
unsigned int  keyLength,
unsigned int  iterationCount 
)
pure virtual

Create a key and return it.

Parameters
secretthe secret part (typically password)
saltthe salt / initialization vector
keyLengththe length of the key to be produced
iterationCountthe number of iterations of the derivation algorithm
virtual SymmetricKey QCA::KDFContext::makeKey ( const SecureArray secret,
const InitializationVector salt,
unsigned int  keyLength,
int  msecInterval,
unsigned int *  iterationCount 
)
pure virtual

Create a key and return it.

Parameters
secretthe secret part (typically password)
saltthe salt / initialization vector
keyLengththe length of the key to be produced
msecIntervalthe maximum time to compute the key, in milliseconds
iterationCounta pointer to store the number of iterations of the derivation algorithm

The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Sep 24 2021 23:05:19 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.