1 /*
2  * Copyright (c) 2009 Bob Deblier
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  *
18  */
19 
20 /*!\file sha2k32.c
21  * \brief SHA-256 and SHA-224 hash function constants, as specified by NIST FIPS 180-2 and IETF RFC 3874.
22  * \author Bob Deblier <bob.deblier@telenet.be>
23  * \ingroup HASH_sha256_m HASH_sha_224_m
24  */
25 
26 #define BEECRYPT_DLL_EXPORT
27 
28 #if HAVE_CONFIG_H
29 # include "config.h"
30 #endif
31 
32 #include "beecrypt/sha2k32.h"
33 
34 const uint32_t SHA2_32BIT_K[64] = {
35 	0x428a2f98U, 0x71374491U, 0xb5c0fbcfU, 0xe9b5dba5U,
36 	0x3956c25bU, 0x59f111f1U, 0x923f82a4U, 0xab1c5ed5U,
37 	0xd807aa98U, 0x12835b01U, 0x243185beU, 0x550c7dc3U,
38 	0x72be5d74U, 0x80deb1feU, 0x9bdc06a7U, 0xc19bf174U,
39 	0xe49b69c1U, 0xefbe4786U, 0x0fc19dc6U, 0x240ca1ccU,
40 	0x2de92c6fU, 0x4a7484aaU, 0x5cb0a9dcU, 0x76f988daU,
41 	0x983e5152U, 0xa831c66dU, 0xb00327c8U, 0xbf597fc7U,
42 	0xc6e00bf3U, 0xd5a79147U, 0x06ca6351U, 0x14292967U,
43 	0x27b70a85U, 0x2e1b2138U, 0x4d2c6dfcU, 0x53380d13U,
44 	0x650a7354U, 0x766a0abbU, 0x81c2c92eU, 0x92722c85U,
45 	0xa2bfe8a1U, 0xa81a664bU, 0xc24b8b70U, 0xc76c51a3U,
46 	0xd192e819U, 0xd6990624U, 0xf40e3585U, 0x106aa070U,
47 	0x19a4c116U, 0x1e376c08U, 0x2748774cU, 0x34b0bcb5U,
48 	0x391c0cb3U, 0x4ed8aa4aU, 0x5b9cca4fU, 0x682e6ff3U,
49 	0x748f82eeU, 0x78a5636fU, 0x84c87814U, 0x8cc70208U,
50 	0x90befffaU, 0xa4506cebU, 0xbef9a3f7U, 0xc67178f2U
51 };
52