|
Botan
1.11.4
|
#include <pbkdf1.h>
Public Member Functions | |
| void | clear () |
| PBKDF * | clone () const |
| OctetString | derive_key (size_t output_len, const std::string &passphrase, const byte salt[], size_t salt_len, size_t iterations) const |
| OctetString | derive_key (size_t output_len, const std::string &passphrase, const byte salt[], size_t salt_len, std::chrono::milliseconds msec, size_t &iterations) const |
| std::pair< size_t, OctetString > | key_derivation (size_t output_len, const std::string &passphrase, const byte salt[], size_t salt_len, size_t iterations, std::chrono::milliseconds msec) const override |
| std::string | name () const |
| PKCS5_PBKDF1 (HashFunction *hash_in) | |
| PKCS5_PBKDF1 (const PKCS5_PBKDF1 &other) | |
| ~PKCS5_PBKDF1 () | |
PKCS #5 v1 PBKDF, aka PBKDF1 Can only generate a key up to the size of the hash output. Unless needed for backwards compatability, use PKCS5_PBKDF2
|
inline |
|
inline |
|
inline |
|
inlinevirtualinherited |
|
inlinevirtual |
Implements Botan::PBKDF.
|
inherited |
Derive a key from a passphrase
| output_len | the desired length of the key to produce |
| passphrase | the password to derive the key from |
| salt | a randomly chosen salt |
| salt_len | length of salt in bytes |
| iterations | the number of iterations to use (use 10K or more) |
Definition at line 13 of file pbkdf.cpp.
References BOTAN_ASSERT, Botan::PBKDF::key_derivation(), and Botan::Algorithm::name().
Referenced by Botan::check_passhash9(), Botan::CryptoBox::decrypt(), Botan::CryptoBox::encrypt(), Botan::generate_passhash9(), and Botan::PBE_PKCS5v15::PBE_PKCS5v15().
|
inherited |
Derive a key from a passphrase
| output_len | the desired length of the key to produce |
| passphrase | the password to derive the key from |
| salt | a randomly chosen salt |
| salt_len | length of salt in bytes |
| msec | is how long to run the PBKDF |
| iterations | is set to the number of iterations used |
Definition at line 31 of file pbkdf.cpp.
References Botan::PBKDF::key_derivation().
|
overridevirtual |
Derive a key from a passphrase for a number of iterations specified by either iterations or if iterations == 0 then running until seconds time has elapsed.
| output_len | the desired length of the key to produce |
| passphrase | the password to derive the key from |
| salt | a randomly chosen salt |
| salt_len | length of salt in bytes |
| iterations | the number of iterations to use (use 10K or more) |
| msec | if iterations is zero, then instead the PBKDF is run until msec milliseconds has passed. |
Implements Botan::PBKDF.
Definition at line 17 of file pbkdf1.cpp.
References Botan::Buffered_Computation::final(), Botan::Buffered_Computation::output_length(), and Botan::Buffered_Computation::update().
|
inlinevirtual |
Implements Botan::Algorithm.
1.8.3.1