nil::crypto3::pbkdf::pkcs5_pkbdf1< Hash > Class Template Reference

PKCS #5 v1 PBKDF, aka PBKDF1 Can only generate a key up to the size of the hash output. Unless needed for backwards compatibility, use PKCS5_PBKDF2. More...

#include <pbkdf1.hpp>

+ Collaboration diagram for nil::crypto3::pbkdf::pkcs5_pkbdf1< Hash >:

Public Types

typedef policy_type::digest_type digest_type
 
typedef policy_type::hash_type hash_type
 
typedef policy_type::salt_type salt_type
 

Public Member Functions

std::size_t derive (digest_type &digest, const std::string &passphrase, const salt_type &salt, size_t iterations, std::chrono::milliseconds msec) const
 

Static Public Attributes

constexpr static const std::size_t digest_bits = policy_type::digest_bits
 
constexpr static const std::size_t salt_bits = policy_type::salt_bits
 

Detailed Description

template<typename Hash>
class nil::crypto3::pbkdf::pkcs5_pkbdf1< Hash >

PKCS #5 v1 PBKDF, aka PBKDF1 Can only generate a key up to the size of the hash output. Unless needed for backwards compatibility, use PKCS5_PBKDF2.

Template Parameters
Hash

Member Typedef Documentation

◆ digest_type

template<typename Hash >
typedef policy_type::digest_type nil::crypto3::pbkdf::pkcs5_pkbdf1< Hash >::digest_type

◆ hash_type

template<typename Hash >
typedef policy_type::hash_type nil::crypto3::pbkdf::pkcs5_pkbdf1< Hash >::hash_type

◆ salt_type

template<typename Hash >
typedef policy_type::salt_type nil::crypto3::pbkdf::pkcs5_pkbdf1< Hash >::salt_type

Member Function Documentation

◆ derive()

template<typename Hash >
std::size_t nil::crypto3::pbkdf::pkcs5_pkbdf1< Hash >::derive ( digest_type digest,
const std::string &  passphrase,
const salt_type salt,
size_t  iterations,
std::chrono::milliseconds  msec 
) const
inline

Member Data Documentation

◆ digest_bits

template<typename Hash >
constexpr static const std::size_t nil::crypto3::pbkdf::pkcs5_pkbdf1< Hash >::digest_bits = policy_type::digest_bits
staticconstexpr

◆ salt_bits

template<typename Hash >
constexpr static const std::size_t nil::crypto3::pbkdf::pkcs5_pkbdf1< Hash >::salt_bits = policy_type::salt_bits
staticconstexpr

The documentation for this class was generated from the following file: