aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2024-05-20 15:37:34 -0400
committerBoringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com>2024-05-21 17:33:25 +0000
commitde6ba216656b819d4d8de7602006561f82a8c669 (patch)
treeb2700e0d25d0ac8da581c0962677391f316c3aa3 /crypto
parent29c9e64ce548ff8278e9d98aa53f611f115c2bed (diff)
downloadboringssl-de6ba216656b819d4d8de7602006561f82a8c669.zip
boringssl-de6ba216656b819d4d8de7602006561f82a8c669.tar.gz
boringssl-de6ba216656b819d4d8de7602006561f82a8c669.tar.bz2
The FIPS hash is only 32 bytes, not 64 bytes
fips_shared_support.c was reserving 64 bytes, but only 32 were used. This is a holdover from before https://boringssl-review.googlesource.com/c/boringssl/+/52165, when sometimes it was HMAC-SHA512. Change-Id: Idbaa02e91db90f6f5ead236236cd536f75b45e19 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/68607 Auto-Submit: David Benjamin <davidben@google.com> Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/fipsmodule/fips_shared_support.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/crypto/fipsmodule/fips_shared_support.c b/crypto/fipsmodule/fips_shared_support.c
index 2a66a1f..74b35f0 100644
--- a/crypto/fipsmodule/fips_shared_support.c
+++ b/crypto/fipsmodule/fips_shared_support.c
@@ -20,13 +20,10 @@
// that must be replaced with the real value during the build process. This
// value need only be distinct, i.e. so that we can safely search-and-replace it
// in an object file.
-const uint8_t BORINGSSL_bcm_text_hash[64];
-const uint8_t BORINGSSL_bcm_text_hash[64] = {
+const uint8_t BORINGSSL_bcm_text_hash[32];
+const uint8_t BORINGSSL_bcm_text_hash[32] = {
0xae, 0x2c, 0xea, 0x2a, 0xbd, 0xa6, 0xf3, 0xec, 0x97, 0x7f, 0x9b,
0xf6, 0x94, 0x9a, 0xfc, 0x83, 0x68, 0x27, 0xcb, 0xa0, 0xa0, 0x9f,
- 0x6b, 0x6f, 0xde, 0x52, 0xcd, 0xe2, 0xcd, 0xff, 0x31, 0x80, 0xa2,
- 0xd4, 0xc3, 0x66, 0x0f, 0xc2, 0x6a, 0x7b, 0xf4, 0xbe, 0x39, 0xa2,
- 0xd7, 0x25, 0xdb, 0x21, 0x98, 0xe9, 0xd5, 0x53, 0xbf, 0x5c, 0x32,
- 0x06, 0x83, 0x34, 0x0c, 0x65, 0x89, 0x52, 0xbd, 0x1f,
+ 0x6b, 0x6f, 0xde, 0x52, 0xcd, 0xe2, 0xcd, 0xff, 0x31, 0x80,
};
#endif // FIPS && SHARED_LIBRARY