diff options
author | Adam Langley <agl@google.com> | 2015-10-17 01:46:46 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-10-21 01:40:15 +0300 |
commit | 6a7cfbe06a8832a9a625985bfe8ab86ef98b7931 (patch) | |
tree | 298961eacc29c7fbc01da32c2a9c144c38edcd51 /crypto/modes/gcm.c | |
parent | c2ae53db6dff3b8a773c43e16e3efaf20ff4c7da (diff) |
Allow ARM capabilities to be set at compile time.
Some ARM environments don't support |getauxval| or signals and need to
configure the capabilities of the chip at compile time. This change adds
defines that allow them to do so.
Change-Id: I4e6987f69dd13444029bc7ac7ed4dbf8fb1faa76
Reviewed-on: https://boringssl-review.googlesource.com/6280
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/modes/gcm.c')
-rw-r--r-- | crypto/modes/gcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/modes/gcm.c b/crypto/modes/gcm.c index 593dce88..b597f45b 100644 --- a/crypto/modes/gcm.c +++ b/crypto/modes/gcm.c @@ -355,7 +355,7 @@ void gcm_ghash_4bit_x86(uint64_t Xi[2], const u128 Htable[16], const uint8_t *in #define GCM_FUNCREF_4BIT static int pmull_capable(void) { - return (OPENSSL_armcap_P & ARMV8_PMULL) != 0; + return CRYPTO_is_ARMv8_PMULL_capable(); } void gcm_init_v8(u128 Htable[16], const uint64_t Xi[2]); |