Crypto++
5.6.3
Free C++ class library of cryptographic schemes
|
PBKDF from PKCS #12, appendix B, T should be a HashTransformation class. More...
Public Member Functions | |
size_t | MaxDerivedKeyLength () const |
bool | UsesPurposeByte () const |
unsigned int | DeriveKey (byte *derived, size_t derivedLen, byte purpose, const byte *password, size_t passwordLen, const byte *salt, size_t saltLen, unsigned int iterations, double timeInSeconds) const |
derive key from password More... | |
PBKDF from PKCS #12, appendix B, T should be a HashTransformation class.
Definition at line 148 of file pwdbased.h.
|
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 157 of file pwdbased.h.
References memcpy_s(), RoundUpToMultipleOf(), SecBlock< T, A >::size(), and STDMIN().