Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

PKCS5_PBKDF2_HMAC< T > Class Template Reference

#include <pwdbased.h>

Inheritance diagram for PKCS5_PBKDF2_HMAC< T >:

PasswordBasedKeyDerivationFunction List of all members.

Detailed Description

template<class T>
class PKCS5_PBKDF2_HMAC< T >

PBKDF2 from PKCS #5, T should be a HashTransformation class.

Definition at line 37 of file pwdbased.h.

Public Member Functions

unsigned int MaxDerivedKeyLength () const
bool UsesPurposeByte () const
unsigned int DeriveKey (byte *derived, unsigned int derivedLen, byte purpose, const byte *password, unsigned int passwordLen, const byte *salt, unsigned int saltLen, unsigned int iterations, double timeInSeconds=0) const
 derive key from password


Member Function Documentation

template<class T>
unsigned int PKCS5_PBKDF2_HMAC< T >::DeriveKey byte *  derived,
unsigned int  derivedLen,
byte  purpose,
const byte *  password,
unsigned int  passwordLen,
const byte *  salt,
unsigned int  saltLen,
unsigned int  iterations,
double  timeInSeconds = 0
const [virtual]
 

derive key from password

If timeInSeconds != 0, will iterate until time elapsed, as measured by ThreadUserTimer Returns actual iteration count, which is equal to iterations if timeInSeconds == 0, and not less than iterations otherwise.

Implements PasswordBasedKeyDerivationFunction.

Definition at line 85 of file pwdbased.h.

References HashTransformation::CalculateDigest(), HMAC_Base::DigestSize(), TimerBase::ElapsedTimeAsDouble(), HashTransformation::Final(), TimerBase::StartTimer(), and HMAC_Base::Update().


The documentation for this class was generated from the following file:
Generated on Wed Jul 21 19:16:03 2004 for Crypto++ by doxygen 1.3.7-20040704