| commit | 5213df4e9ed9ca130c40f142893cb91f2e18eee1 | [log] [tgz] |
|---|---|---|
| author | David Benjamin <davidben@chromium.org> | Wed Aug 20 14:19:54 2014 -0400 |
| committer | Adam Langley <agl@google.com> | Wed Aug 20 20:53:31 2014 +0000 |
| tree | cd317a619f5a9efa8c575b4a38e068164db7d5dd | |
| parent | 92909a6206037f8266d93979028215a8b7f20614 [diff] [blame] |
Prefer AES-GCM when hardware support is available. BUG=396787 Change-Id: I72ddb0ec3c71dbc70054403163930cbbde4b6009 Reviewed-on: https://boringssl-review.googlesource.com/1581 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/crypto/modes/internal.h b/crypto/modes/internal.h index 4fa0ec6..4659eab 100644 --- a/crypto/modes/internal.h +++ b/crypto/modes/internal.h
@@ -194,6 +194,13 @@ #endif +#if defined(OPENSSL_X86) || defined(OPENSSL_X86_64) +/* crypto_gcm_clmul_enabled returns one if the CLMUL implementation of GCM is + * used. */ +int crypto_gcm_clmul_enabled(void); +#endif + + #if defined(__cplusplus) } /* extern C */ #endif