QCA::KeyDerivationFunction Class Reference

General superclass for key derivation algorithms. More...

#include <QtCrypto>

Inheritance diagram for QCA::KeyDerivationFunction:

QCA::Algorithm QCA::PBKDF1 QCA::PBKDF2 Collaboration diagram for QCA::KeyDerivationFunction:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KeyDerivationFunction (const KeyDerivationFunction &from)
KeyDerivationFunctionoperator= (const KeyDerivationFunction &from)
SymmetricKey makeKey (const SecureArray &secret, const InitializationVector &salt, unsigned int keyLength, unsigned int iterationCount)

Static Public Member Functions

static QString withAlgorithm (const QString &kdfType, const QString &algType)

Protected Member Functions

 KeyDerivationFunction (const QString &type, const QString &provider)

Detailed Description

General superclass for key derivation algorithms.

KeyDerivationFunction is a superclass for the various key derivation function algorithms within QCA. You should not need to use it directly unless you are adding another key derivation capability to QCA - you should be using a sub-class. PBKDF2 using SHA1 is recommended for new applications.


Constructor & Destructor Documentation

QCA::KeyDerivationFunction::KeyDerivationFunction const KeyDerivationFunction from  ) 
 

Standard copy constructor.

QCA::KeyDerivationFunction::KeyDerivationFunction const QString type,
const QString provider
[protected]
 

Special constructor for subclass initialisation.


Member Function Documentation

KeyDerivationFunction& QCA::KeyDerivationFunction::operator= const KeyDerivationFunction from  ) 
 

Assignment operator.

Copies the state (including key) from one KeyDerivationFunction to another

SymmetricKey QCA::KeyDerivationFunction::makeKey const SecureArray secret,
const InitializationVector salt,
unsigned int  keyLength,
unsigned int  iterationCount
 

Generate the key from a specified secret and salt value.

Note:
key length is ignored for some functions
Parameters:
secret the secret (password or passphrase)
salt the salt to use
keyLength the length of key to return
iterationCount the number of iterations to perform
Returns:
the derived key

static QString QCA::KeyDerivationFunction::withAlgorithm const QString kdfType,
const QString algType
[static]
 

Construct the name of the algorithm.

You can use this to build a standard name string. You probably only need this method if you are creating a new subclass.


The documentation for this class was generated from the following file:
Generated on Fri Jul 6 13:23:22 2007 for Qt Cryptographic Architecture by  doxygen 1.4.6