Commit Graph

28 Commits

Author SHA1 Message Date
Jeffrey Walton
ddb8f36e88
Fix use of <x86intrin.h> for MSVC (GH #1198)
It seems Microsoft now defines GCC defines, like __BMI__
2023-04-15 18:21:03 -04:00
Jeffrey Walton
5dd2d635c9
Fix ppc64le build with Clang 2020-07-02 00:53:34 -04:00
Jeffrey Walton
a830b24e7a
Silence GCC warnings in BLAKE2 2020-06-29 08:31:25 -04:00
Jeffrey Walton
3bdcb5b8e0
Update comments 2020-06-29 05:22:27 -04:00
Jeffrey Walton
827f2ebcad
Speedup BLAKE2s message loading on PowerPC 2020-06-29 05:17:59 -04:00
Jeffrey Walton
a3aefbb1dc
Update comments 2020-06-29 04:55:40 -04:00
Jeffrey Walton
97695f87a9
Speedup BLAKE2 message loading on PowerPC 2020-06-29 04:44:58 -04:00
Jeffrey Walton
4f54885d86
Speedup BLAKE2 message loading on PowerPC 2020-06-29 04:30:11 -04:00
Jeffrey Walton
25cdab6d32
Use little-endian mask during BLAKE2 loads 2020-06-28 02:34:52 -04:00
Jeffrey Walton
dc2b336ace
Cleanup BLAKE2 POWER8 code 2020-06-27 08:20:14 -04:00
Jeffrey Walton
282e8d4954
Avoid BLAKE2b permute and mask on POWER8 2020-06-26 18:42:22 -04:00
Jeffrey Walton
e007e98501
Update comments 2020-04-11 08:36:02 -04:00
Jeffrey Walton
6f21803445
Update file header comments 2020-04-11 05:57:26 -04:00
Jeffrey Walton
4d61cd7310
Try to replace vec_rl for Clang 3.8
The PowerPC builds are failing at Travis. Travis provides a Power7 machine with Clang 3.8.
2019-10-23 19:55:13 -04:00
Jeffrey Walton
06cee3cdf4
Fix AIX and Linux compiles for PowerPC (PR #902) 2019-10-23 18:15:47 -04:00
Jeffrey Walton
1f3e65fc35
More Clang workarounds on PowerPC (PR #901) 2019-10-23 12:40:45 -04:00
Jeffrey Walton
60eedb97ba
Fix ARM headers and Android compile (PR #896)
* Test fix ARM headers
This problem has been festering for some time. The header file includes are slightly different than the ISA options. Some platforms need an include, others don't.

* Fix cryptest-android.sh and cryptest-ios.sh

* Fix MSVC ARM32 and ARM64 compile

* Split ARM32 and ARM64 recipes in GNUmakefile
2019-10-16 21:00:45 -04:00
Jeffrey Walton
6d3346990e
Clear unused varaible warning on PowerPC 2019-10-14 20:06:01 -04:00
Jeffrey Walton
eeb7dadc76
Fix missing _mm_roti_epi32 and _mm_roti_epi64 under GCC (GH #859) 2019-07-02 19:10:11 -04:00
Jeffrey Walton
fbbf0a08e8
Add missing XOP header for blake2b_simd.cpp (GH #859)
The Gentoo folks caught a bug at https://bugs.gentoo.org/689162. The 689162 bug uses -march=bdver1 -msse4.1 on a AMD Bulldozer machine.

Investigating the issue we are missing the XOP header blake2b_simd.cpp. However, adding the XOP header is not enough for this particular config. Four source files fail to compile with the expected headers. We are waiting on the GCC folks to get back to us with a fix.
2019-07-02 16:55:00 -04:00
Jeffrey Walton
0dd07252d2
Update comments 2019-05-28 20:19:34 -04:00
Jeffrey Walton
39418a8512
Use PowerPC unaligned loads and stores with Power8 (GH #825, PR #826)
Use PowerPC unaligned loads and stores with Power8. Formerly we were using Power7 as the floor because the IBM POWER Architecture manuals said unaligned loads and stores were available. However, some compilers generate bad code for unaligned loads and stores using `-march=power7`, so bump to a known good.
2019-04-27 20:35:01 -04:00
Jeffrey Walton
822ca11579
Cleanup headers after Microsoft ARM64 port 2019-01-04 11:33:28 -05:00
Jeffrey Walton
02f7fda54b
Fix <arm_neon.h> include for ARM64 with MSVC compiler (GH #776) 2019-01-04 11:25:55 -05:00
Jeffrey Walton
0998b40d2d
Disable Altivec for BLAKE2s on AIX 7.1 and XLC 12.01 (GH #743) 2018-11-21 00:25:05 -05:00
Jeffrey Walton
a65d55a3fd
Rewrite BLAKE2 classes
The ParameterBlocks for BLAKE2 had undefined behavior. We relied on the compiler packing the bytes in the structure, then we used the first byte as the start of an array.

This rewrite does things correctly. We don't memset the structure, and we don't treat the structure as a contiguous array.
2018-11-20 23:32:35 -05:00
Jeffrey Walton
f6e04e5f33
Rename PPC vector functions from VectorFunc to VecFunc 2018-11-15 15:17:49 -05:00
Jeffrey Walton
896225069d
Rename files with dashes to underscores (GH #736)
Also see https://groups.google.com/forum/#!topic/cryptopp-users/HBz-6gZZFOA on the mailing list
2018-11-10 08:00:14 -05:00