Use a smaller hex digest in FIPS flag files when SHA-256 used.
1458b49a9e5 switched to using HMAC-SHA256 for FIPS integrity checks on
Android. However, the flag file was named after a full 64-byte hex
digest. The additional 32 bytes weren't uninitialised, but are still
superfluous. This change gets rid of them.
Change-Id: I192af9eb2b94833cdea3620a153d4fd05c7265b9
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/37864
Commit-Queue: Adam Langley <agl@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
diff --git a/crypto/self_test.cc b/crypto/self_test.cc
index b0c769d..c20b5de 100644
--- a/crypto/self_test.cc
+++ b/crypto/self_test.cc
@@ -19,7 +19,6 @@
TEST(SelfTests, KAT) {
#if !defined(_MSC_VER)
- const uint8_t zero_hash[SHA512_DIGEST_LENGTH] = {0};
- EXPECT_TRUE(BORINGSSL_self_test(zero_hash));
+ EXPECT_TRUE(BORINGSSL_self_test());
#endif
}