Fabcoin Core
0.16.2
P2P Digital Currency
|
PBKDF2 from PKCS #5. More...
#include <pwdbased.h>
Public Member Functions | |
size_t | MaxDerivedKeyLength () const |
Provides the maximum derived key length. More... | |
bool | UsesPurposeByte () const |
Determines if the derivation function uses the purpose byte. More... | |
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=0) const |
Derive key from the password. More... | |
Public Member Functions inherited from PasswordBasedKeyDerivationFunction | |
virtual | ~PasswordBasedKeyDerivationFunction () |
PBKDF2 from PKCS #5.
T | a HashTransformation class |
Definition at line 62 of file pwdbased.h.
|
virtual |
Derive key from the password.
derived | the byte buffer to receive the derived password |
derivedLen | the size of the byte buffer to receive the derived password |
purpose | an octet indicating the purpose of the derivation |
password | the byte buffer with the password |
passwordLen | the size of the password, in bytes |
salt | the byte buffer with the salt |
saltLen | the size of the salt, in bytes |
iterations | the number of iterations to attempt |
timeInSeconds | the length of time the derivation function should execute |
DeriveKey returns the actual iteration count achieved. If timeInSeconds == 0
, then the complete number of iterations will be obtained. If timeInSeconds != 0
, then DeriveKey will iterate until time elapsed, as measured by ThreadUserTimer.
Implements PasswordBasedKeyDerivationFunction.
Definition at line 111 of file pwdbased.h.
|
inlinevirtual |
Provides the maximum derived key length.
Implements PasswordBasedKeyDerivationFunction.
Definition at line 65 of file pwdbased.h.
|
inlinevirtual |
Determines if the derivation function uses the purpose byte.
Implements PasswordBasedKeyDerivationFunction.
Definition at line 66 of file pwdbased.h.