36 #ifndef _PBKDF2_HPP_INCLUDED
37 #define _PBKDF2_HPP_INCLUDED
52 const unsigned char* salt,
size_t saltSize,
53 std::size_t dkLen,
unsigned int rounds );
55 std::size_t dkLen,
unsigned int rounds );
56 PBKDF2_HMAC_SHA1(
const std::string& password,
const unsigned char* salt,
size_t saltSize,
57 std::size_t dkLen,
unsigned int rounds );
58 PBKDF2_HMAC_SHA1(
const unsigned char* password,
size_t pwdSize,
const std::string& salt,
59 std::size_t dkLen,
unsigned int rounds );
78 bool operator != (
const std::string& rhs )
const {
return !( *
this == rhs ); }
81 std::string
toBCD()
const;
92 #endif // _PBKDF2_HPP_INCLUDED
std::size_t size() const
Returns the hash length in bytes.
Definition: PBKDF2.hpp:69
bool operator==(const PBKDF2_HMAC_SHA1 &rhs) const
Comparisson operators.
std::size_t m_dkLen
hash length in bytes
Definition: PBKDF2.hpp:86
unsigned char * m_hash
the hash
Definition: PBKDF2.hpp:87
PBKDF2_HMAC_SHA1(const unsigned char *password, size_t pwdSize, const unsigned char *salt, size_t saltSize, std::size_t dkLen, unsigned int rounds)
std::string toString() const
const unsigned char * hash() const
Returns the pointer to the hash.
Definition: PBKDF2.hpp:67
bool operator!=(const PBKDF2_HMAC_SHA1 &rhs) const
Definition: PBKDF2.hpp:73
Definition: PBKDF2.hpp:44
std::string toBCD() const
BCD string representation of the PBKDF2-HMAC-SHA1 value.