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