33
33
*
34
34
* $From: sha2.c,v 1.1 2001/11/08 00:01:51 adg Exp adg $
35
35
*
36
- * $PostgreSQL: pgsql/contrib/pgcrypto/sha2.c,v 1.3 2005/07/11 15:40:38 tgl Exp $
36
+ * $PostgreSQL: pgsql/contrib/pgcrypto/sha2.c,v 1.4 2005/07/12 20:27:42 tgl Exp $
37
37
*/
38
38
39
39
#include "postgres.h"
@@ -170,7 +170,7 @@ void SHA512_Transform(SHA512_CTX *, const uint8 *);
170
170
171
171
/*** SHA-XYZ INITIAL HASH VALUES AND CONSTANTS ************************/
172
172
/* Hash constant words K for SHA-256: */
173
- const static uint32 K256 [64 ] = {
173
+ static const uint32 K256 [64 ] = {
174
174
0x428a2f98UL , 0x71374491UL , 0xb5c0fbcfUL , 0xe9b5dba5UL ,
175
175
0x3956c25bUL , 0x59f111f1UL , 0x923f82a4UL , 0xab1c5ed5UL ,
176
176
0xd807aa98UL , 0x12835b01UL , 0x243185beUL , 0x550c7dc3UL ,
@@ -190,7 +190,7 @@ const static uint32 K256[64] = {
190
190
};
191
191
192
192
/* Initial hash value H for SHA-256: */
193
- const static uint32 sha256_initial_hash_value [8 ] = {
193
+ static const uint32 sha256_initial_hash_value [8 ] = {
194
194
0x6a09e667UL ,
195
195
0xbb67ae85UL ,
196
196
0x3c6ef372UL ,
@@ -202,7 +202,7 @@ const static uint32 sha256_initial_hash_value[8] = {
202
202
};
203
203
204
204
/* Hash constant words K for SHA-384 and SHA-512: */
205
- const static uint64 K512 [80 ] = {
205
+ static const uint64 K512 [80 ] = {
206
206
0x428a2f98d728ae22ULL , 0x7137449123ef65cdULL ,
207
207
0xb5c0fbcfec4d3b2fULL , 0xe9b5dba58189dbbcULL ,
208
208
0x3956c25bf348b538ULL , 0x59f111f1b605d019ULL ,
@@ -246,7 +246,7 @@ const static uint64 K512[80] = {
246
246
};
247
247
248
248
/* Initial hash value H for SHA-384 */
249
- const static uint64 sha384_initial_hash_value [8 ] = {
249
+ static const uint64 sha384_initial_hash_value [8 ] = {
250
250
0xcbbb9d5dc1059ed8ULL ,
251
251
0x629a292a367cd507ULL ,
252
252
0x9159015a3070dd17ULL ,
@@ -258,7 +258,7 @@ const static uint64 sha384_initial_hash_value[8] = {
258
258
};
259
259
260
260
/* Initial hash value H for SHA-512 */
261
- const static uint64 sha512_initial_hash_value [8 ] = {
261
+ static const uint64 sha512_initial_hash_value [8 ] = {
262
262
0x6a09e667f3bcc908ULL ,
263
263
0xbb67ae8584caa73bULL ,
264
264
0x3c6ef372fe94f82bULL ,
0 commit comments