summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--third_party/boringssl/common/aes-gcm.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/third_party/boringssl/common/aes-gcm.c b/third_party/boringssl/common/aes-gcm.c
index 5647a22995..edb98b88b3 100644
--- a/third_party/boringssl/common/aes-gcm.c
+++ b/third_party/boringssl/common/aes-gcm.c
@@ -95,10 +95,6 @@ static inline void store_word_le(void *out, size_t v) {
} \
} while (0)
-// kSizeTWithoutLower4Bits is a mask that can be used to zero the lower four
-// bits of a |size_t|.
-static const size_t kSizeTWithoutLower4Bits = (size_t) -16;
-
static void gcm_init_4bit(u128 Htable[16], uint64_t H[2]) {
u128 V;
@@ -376,6 +372,12 @@ void gcm_ghash_p8(uint64_t Xi[2], const u128 Htable[16], const uint8_t *inp,
#endif
#endif
+#ifdef GHASH
+// kSizeTWithoutLower4Bits is a mask that can be used to zero the lower four
+// bits of a |size_t|.
+static const size_t kSizeTWithoutLower4Bits = (size_t) -16;
+#endif
+
static void CRYPTO_ghash_init(gmult_func *out_mult, ghash_func *out_hash,
u128 *out_key, u128 out_table[16],
const uint8_t *gcm_key) {