Fabcoin Core
0.16.2
P2P Digital Currency
|
PBKDF from PKCS #12, appendix B. 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) const |
Derive key from the password. More... | |
Public Member Functions inherited from PasswordBasedKeyDerivationFunction | |
virtual | ~PasswordBasedKeyDerivationFunction () |
PBKDF from PKCS #12, appendix B.
T | a HashTransformation class |
Definition at line 173 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 182 of file pwdbased.h.
|
inlinevirtual |
Provides the maximum derived key length.
Implements PasswordBasedKeyDerivationFunction.
Definition at line 176 of file pwdbased.h.
|
inlinevirtual |
Determines if the derivation function uses the purpose byte.
Implements PasswordBasedKeyDerivationFunction.
Definition at line 177 of file pwdbased.h.