File: sha1_constants.hpp

package info (click to toggle)
rapmap 0.15.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,228 kB
  • sloc: cpp: 48,810; ansic: 4,686; sh: 215; python: 82; makefile: 15
file content (30 lines) | stat: -rw-r--r-- 459 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
This code is written by kerukuro and released into public domain.
*/

#ifndef DIGESTPP_PROVIDERS_SHA1_CONSTANTS_HPP
#define DIGESTPP_PROVIDERS_SHA1_CONSTANTS_HPP

namespace digestpp
{

namespace detail
{

template<typename T>
struct sha1_constants
{
	const static uint32_t K[4];
};

template<typename T>
const uint32_t sha1_constants<T>::K[4] = {
		0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6
};

} // namespace detail

} // namespace digestpp

#endif