summaryrefslogtreecommitdiffstats
path: root/crypto/sha/sha256.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2011-09-14 20:48:49 +0000
committerAndy Polyakov <appro@openssl.org>2011-09-14 20:48:49 +0000
commit03e389cf049e4bbc2f6d0028dc320fb0583aad2c (patch)
tree61020185544c4ff9567d236e9c1ee3a74ee417c8 /crypto/sha/sha256.c
parent93256bf5d148f3b8fa02a410b4477c6c9ca20e65 (diff)
Allow for dynamic base in Win64 FIPS module.
Diffstat (limited to 'crypto/sha/sha256.c')
-rw-r--r--crypto/sha/sha256.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/sha/sha256.c b/crypto/sha/sha256.c
index 8952d87673..d43ee653a3 100644
--- a/crypto/sha/sha256.c
+++ b/crypto/sha/sha256.c
@@ -14,6 +14,7 @@
#include <openssl/sha.h>
#include <openssl/opensslv.h>
+__fips_constseg
const char SHA256_version[]="SHA-256" OPENSSL_VERSION_PTEXT;
int SHA224_Init (SHA256_CTX *c)
@@ -115,6 +116,7 @@ void sha256_block_data_order (SHA256_CTX *ctx, const void *in, size_t num);
#include "md32_common.h"
#ifndef SHA256_ASM
+__fips_constseg
static const SHA_LONG K256[64] = {
0x428a2f98UL,0x71374491UL,0xb5c0fbcfUL,0xe9b5dba5UL,
0x3956c25bUL,0x59f111f1UL,0x923f82a4UL,0xab1c5ed5UL,