diff options
Diffstat (limited to 'src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp')
-rw-r--r-- | src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp b/src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp index 65e4e72c0..355e2cf44 100644 --- a/src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp +++ b/src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp @@ -188,6 +188,11 @@ std::unique_ptr<PasswordHash> RFC4880_S2K_Family::default_params() const return std::unique_ptr<PasswordHash>(new RFC4880_S2K(m_hash->clone(), 50331648)); } +std::unique_ptr<PasswordHash> RFC4880_S2K_Family::from_iterations(size_t iter) const + { + return std::unique_ptr<PasswordHash>(new RFC4880_S2K(m_hash->clone(), iter)); + } + RFC4880_S2K::RFC4880_S2K(HashFunction* hash, size_t iterations) : m_hash(hash), m_iterations(iterations) |