#include <regex>
#include <iostream>
#include <fstream>
#include <digestpp/digestpp.hpp>
Go to the source code of this file.
|
| std::string | hex2string (const std::string &hex) |
| |
| void | trim_string (std::string &str) |
| |
| std::pair< std::string, std::string > | split_vector (const std::string &str) |
| |
| template<typename H , template< typename > class M, typename std::enable_if<!digestpp::detail::is_xof< H >::value >::type * = nullptr> |
| std::string | compute_vector (const std::string &, digestpp::hasher< H, M > &hasher) |
| |
| template<typename H , typename std::enable_if<!has_customization< H >::value &&!has_personalization< H >::value >::type * = nullptr> |
| void | set_customization (const std::string &customization, H &hasher) |
| |
| template<typename H , typename std::enable_if<!has_salt< H >::value >::type * = nullptr> |
| void | set_salt (const std::string &salt, H &hasher) |
| |
| template<typename H , typename std::enable_if<!has_key< H >::value >::type * = nullptr> |
| void | set_key (const std::string &key, H &hasher) |
| |
| template<typename H > |
| void | test_vectors (const H &hasher, const char *name, const char *filename) |
| |
◆ compute_vector()
template<typename H , template< typename > class M, typename std::enable_if<!
digestpp::detail::is_xof< H >::value >::type * = nullptr>
| std::string compute_vector |
( |
const std::string & | expected, |
|
|
digestpp::hasher< H, M > & | hasher ) |
◆ hex2string()
| std::string hex2string |
( |
const std::string & | hex | ) |
|
|
inline |
◆ set_customization()
| void set_customization |
( |
const std::string & | customization, |
|
|
H & | hasher ) |
◆ set_key()
template<typename H , typename std::enable_if<!
has_key< H >::value >::type * = nullptr>
| void set_key |
( |
const std::string & | key, |
|
|
H & | hasher ) |
◆ set_salt()
template<typename H , typename std::enable_if<!
has_salt< H >::value >::type * = nullptr>
| void set_salt |
( |
const std::string & | salt, |
|
|
H & | hasher ) |
◆ split_vector()
| std::pair< std::string, std::string > split_vector |
( |
const std::string & | str | ) |
|
|
inline |
◆ test_vectors()
template<typename H >
| void test_vectors |
( |
const H & | hasher, |
|
|
const char * | name, |
|
|
const char * | filename ) |
◆ trim_string()
| void trim_string |
( |
std::string & | str | ) |
|
|
inline |