digestpp
0.01
Experimental C++11 header-only message digest library.
algorithm
whirlpool.hpp
1
/*
2
This code is written by kerukuro and released into public domain.
3
*/
4
5
#
ifndef
DIGESTPP_ALGORITHM_WHIRLPOOL_HPP
6
#
define
DIGESTPP_ALGORITHM_WHIRLPOOL_HPP
7
8
#
include
"../hasher.hpp"
9
#
include
"detail/whirlpool_provider.hpp"
10
11
namespace
digestpp
12
{
13
14
/**
15
* @brief Whirlpool hash function
16
*
17
* @hash
18
*
19
* @outputsize 512 bits
20
*
21
* @defaultsize 512 bits
22
*
23
* @par Example:\n
24
* @code // Output a Whirlpool digest of a string
25
* digestpp::whirlpool hasher;
26
* hasher.absorb("The quick brown fox jumps over the lazy dog");
27
* std::cout << hasher.hexdigest() << '\n';
28
* @endcode
29
*
30
* @par Example output:\n
31
* @code b97de512e91e3828b40d2b0fdce9ceb3c4a71f9bea8d88e75c4fa854df36725fd2b52eb6544edcacd6f8beddfea403cb55ae31f03ad62a5ef54e42ee82c3fb35
32
* @endcode
33
*
34
* @sa hasher
35
*/
36
typedef
hasher
<
detail
::
whirlpool_provider
>
whirlpool
;
37
38
}
// namespace digestpp
39
40
#
endif
// DIGESTPP_ALGORITHM_WHIRLPOOL_HPP
digestpp::shake256
hasher< detail::shake_provider< 256, 24 > > shake256
SHAKE256 function.
Definition:
shake.hpp:53
digestpp::whirlpool
hasher< detail::whirlpool_provider > whirlpool
Whirlpool hash function.
Definition:
whirlpool.hpp:36
Generated by
1.8.13