|
Botan 1.10.17
|
#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 |
| std::string | name () const |
| PKCS5_PBKDF1 (const PKCS5_PBKDF1 &other) | |
| PKCS5_PBKDF1 (HashFunction *hash_in) | |
| ~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 |
Create a PKCS #5 instance using the specified hash function.
| hash_in | pointer to a hash function object to use |
Definition at line 28 of file pbkdf1.h.
Referenced by clone(), Botan::Core_Engine::find_pbkdf(), and PKCS5_PBKDF1().
|
inline |
Copy constructor
| other | the object to copy |
Definition at line 34 of file pbkdf1.h.
References clone(), and PKCS5_PBKDF1().
|
inline |
|
inlinevirtualinherited |
|
inlinevirtual |
Implements Botan::PBKDF.
Definition at line 44 of file pbkdf1.h.
References PKCS5_PBKDF1().
Referenced by PKCS5_PBKDF1().
|
virtual |
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) |
Implements Botan::PBKDF.
Definition at line 16 of file pbkdf1.cpp.
References Botan::OctetString::OctetString(), and Botan::MemoryRegion< T >::size().
|
inlinevirtual |
Implements Botan::Algorithm.
Definition at line 39 of file pbkdf1.h.