diff options
author | Andy Polyakov <appro@openssl.org> | 2011-09-14 20:48:49 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2011-09-14 20:48:49 +0000 |
commit | 03e389cf049e4bbc2f6d0028dc320fb0583aad2c (patch) | |
tree | 61020185544c4ff9567d236e9c1ee3a74ee417c8 /fips/rsa/fips_rsa_sign.c | |
parent | 93256bf5d148f3b8fa02a410b4477c6c9ca20e65 (diff) |
Allow for dynamic base in Win64 FIPS module.
Diffstat (limited to 'fips/rsa/fips_rsa_sign.c')
-rw-r--r-- | fips/rsa/fips_rsa_sign.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/fips/rsa/fips_rsa_sign.c b/fips/rsa/fips_rsa_sign.c index 4e1f27d48d..013333e0b4 100644 --- a/fips/rsa/fips_rsa_sign.c +++ b/fips/rsa/fips_rsa_sign.c @@ -74,26 +74,31 @@ /* Standard encodings including NULL parameter */ +__fips_constseg static const unsigned char sha1_bin[] = { 0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2b, 0x0e, 0x03, 0x02, 0x1a, 0x05, 0x00, 0x04, 0x14 }; +__fips_constseg static const unsigned char sha224_bin[] = { 0x30, 0x2d, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x04, 0x05, 0x00, 0x04, 0x1c }; +__fips_constseg static const unsigned char sha256_bin[] = { 0x30, 0x31, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05, 0x00, 0x04, 0x20 }; +__fips_constseg static const unsigned char sha384_bin[] = { 0x30, 0x41, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x02, 0x05, 0x00, 0x04, 0x30 }; +__fips_constseg static const unsigned char sha512_bin[] = { 0x30, 0x51, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x03, 0x05, 0x00, 0x04, 0x40 @@ -103,27 +108,32 @@ static const unsigned char sha512_bin[] = { * using this format but do tolerate received signatures of this form. */ -static unsigned char sha1_nn_bin[] = { +__fips_constseg +static const unsigned char sha1_nn_bin[] = { 0x30, 0x1f, 0x30, 0x07, 0x06, 0x05, 0x2b, 0x0e, 0x03, 0x02, 0x1a, 0x04, 0x14 }; -static unsigned char sha224_nn_bin[] = { +__fips_constseg +static const unsigned char sha224_nn_bin[] = { 0x30, 0x2b, 0x30, 0x0b, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x04, 0x04, 0x1c }; -static unsigned char sha256_nn_bin[] = { +__fips_constseg +static const unsigned char sha256_nn_bin[] = { 0x30, 0x2f, 0x30, 0x0b, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x04, 0x20 }; -static unsigned char sha384_nn_bin[] = { +__fips_constseg +static const unsigned char sha384_nn_bin[] = { 0x30, 0x3f, 0x30, 0x0b, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x02, 0x04, 0x30 }; -static unsigned char sha512_nn_bin[] = { +__fips_constseg +static const unsigned char sha512_nn_bin[] = { 0x30, 0x4f, 0x30, 0x0b, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x03, 0x04, 0x40 }; |