Commit Graph

24 Commits (db628065bff98b7b63a59f1acbaf921ac6318cf7)

Author SHA1 Message Date
Jeffrey Walton 5f441d28e5
Cleanup __m128 casts due to Clang 2017-08-13 06:53:35 -04:00
Jeffrey Walton 5f3a3f29e8
Sync with Upstream master 2017-08-12 19:28:59 -04:00
Jeffrey Walton 5b945a5412
Update for earlier Apple compilers, like Apple Clang 6 and 8 2017-08-11 14:24:05 -04:00
Jeffrey Walton 8a66353b2c
Test <arm_acle.h> include under Apple
This is a compile test
2017-08-11 12:31:04 -04:00
Jeffrey Walton 6590a928ce
Add Android ARMv8 guards 2017-08-07 21:04:23 -04:00
Jeffrey Walton a8cbfc52fc
__android__ → __ANDROID__
Also see https://stackoverflow.com/q/6374523/608639
2017-08-07 12:18:39 -04:00
Jeffrey Walton d95a38a9fc
Add Android CPU feature detection code
Also see https://developer.android.com/ndk/guides/cpu-features.html
2017-08-07 11:20:14 -04:00
Jeffrey Walton a04dda56fa
Separate Aarch32 and Aarch64 guards
Also see https://sourceware.org/ml/libc-help/2017-08/msg00012.html
2017-08-07 10:37:02 -04:00
Jeffrey Walton 2ac6c6dd20
Add Aarch32 and Aarch64 specific guards for Linux 2017-08-07 07:58:16 -04:00
Jeffrey Walton 89ccfad2d0
Use getauxval on Linux for features
getauxval() is the recommended way to determine features on Linux. Its likely less expensive than CPU probing for SIGILLs. We gave up portability, but some gained stability
2017-08-07 07:37:08 -04:00
Jeffrey Walton fd97121e8a
Fix VMULL_P64 and VMULL_HIGH_P64 on GCC117
GCC117 uses GCC 4.8, and it revealed a missing preprocessor code path
2017-08-06 06:04:01 -04:00
Jeffrey Walton e06c1561de
Fix missing GCM_ReverseHashBufferIfNeeded_NEON under NEON 2017-07-31 14:21:11 -04:00
Jeffrey Walton 9d8a89256d
Cleanup ARMv7 and ARMv8 2017-07-31 07:13:34 -04:00
Jeffrey Walton 51cff62bd0
Fix ARMv7 2017-07-31 05:22:35 -04:00
Jeffrey Walton eafdae9025
Const-ify hashKey 2017-07-31 04:27:22 -04:00
Jeffrey Walton 6145d52b22
Add GCM_SetKeyWithoutResync_PMULL 2017-07-31 04:16:39 -04:00
Jeffrey Walton 48f46bb852
Update comments 2017-07-31 03:55:10 -04:00
Jeffrey Walton 205e116bcd
Fix Intel SHA code path activation 2017-07-31 03:48:45 -04:00
Jeffrey Walton a8462328f4
Fix Aarch64 build. Cleanup Windows build 2017-07-31 03:07:32 -04:00
Jeffrey Walton 1fdd08d690
Fix ARM build under Windows Phone 2017-07-31 02:09:15 -04:00
Jeffrey Walton a495018af2
Fix GCM under SSSE3 and CLMUL 2017-07-31 00:40:03 -04:00
Jeffrey Walton 5e9e228727
Fix ARIA under SSSE3 2017-07-30 22:55:50 -04:00
Jeffrey Walton 6169b5d4d6
Cleaned up ARM related defines, like CRYPTOPP_ARM_NEON_AVAILABLE
We only need to base it on the compiler in config.h. config.h activates the code path guarded by HasNEON(). The source file that actially provides the NEON implementation will be compiled with -fpu=neon or -march=armv8-a.
Since we are providing the specialized implementation in a sequestered source file (and not a header file), we can probably avoid the defines like CRYPTOPP_ARM_NEON_AVAILABLE altogether.
2017-07-30 19:14:47 -04:00
Jeffrey Walton b4f6882237
Fixed ARMv7a and NEON detection. Initial cut-in of GCM 2017-07-30 03:16:58 -04:00