digestpp 1.0
C++11 header-only message digest library
Loading...
Searching...
No Matches
sha3_constants.hpp
Go to the documentation of this file.
1/*
2This code is written by kerukuro and released into public domain.
3*/
4
5#ifndef DIGESTPP_PROVIDERS_SHA3_CONSTANTS_HPP
6#define DIGESTPP_PROVIDERS_SHA3_CONSTANTS_HPP
7
8namespace digestpp
9{
10
11namespace detail
12{
13
14template<typename T>
16{
17 const static uint64_t RC[24];
18};
19
20template<typename T>
21const uint64_t sha3_constants<T>::RC[24] = {
22 0x0000000000000001ull, 0x0000000000008082ull, 0x800000000000808Aull, 0x8000000080008000ull,
23 0x000000000000808Bull, 0x0000000080000001ull, 0x8000000080008081ull, 0x8000000000008009ull,
24 0x000000000000008Aull, 0x0000000000000088ull, 0x0000000080008009ull, 0x000000008000000Aull,
25 0x000000008000808Bull, 0x800000000000008Bull, 0x8000000000008089ull, 0x8000000000008003ull,
26 0x8000000000008002ull, 0x8000000000000080ull, 0x000000000000800Aull, 0x800000008000000Aull,
27 0x8000000080008081ull, 0x8000000000008080ull, 0x0000000080000001ull, 0x8000000080008008ull
28};
29
30
31} // namespace detail
32
33} // namespace digestpp
34
35#endif // DIGESTPP_PROVIDERS_SHA3_CONSTANTS_HPP
digestpp namespace
Definition ascon.hpp:14
Definition sha3_constants.hpp:16
static const uint64_t RC[24]
Definition sha3_constants.hpp:17