|
Botan
1.10.17
|
#include <pgp_s2k.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 |
| OpenPGP_S2K (HashFunction *hash_in) | |
| ~OpenPGP_S2K () | |
|
inline |
|
inline |
|
inlinevirtualinherited |
|
inlinevirtual |
Implements Botan::PBKDF.
Definition at line 34 of file pgp_s2k.h.
|
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 15 of file pgp_s2k.cpp.
References Botan::Algorithm::clear(), Botan::Buffered_Computation::final(), Botan::CT::max(), Botan::Buffered_Computation::output_length(), Botan::MemoryRegion< T >::size(), and Botan::Buffered_Computation::update().
|
inlinevirtual |
Implements Botan::Algorithm.
Definition at line 29 of file pgp_s2k.h.
1.8.14