Jeffrey Walton
d7a3562c0b
Whitespace check-in
2018-11-04 14:36:55 -05:00
Jeffrey Walton
87d679bc7e
Add additional ChaCha20 test vectors (GH #732 )
...
The additional tests ensure we cross the 32-bit boundary used by the state counters
2018-11-04 14:34:32 -05:00
Jeffrey Walton
40fa6873f9
Add ability to Seek64 in test framework (GH #732 )
...
Also see https://github.com/randombit/botan/pull/1728
2018-11-04 14:21:54 -05:00
Jeffrey Walton
f7c0fab5b2
Fix compile on early Apple platforms.
...
I think this may be related to the VectorSource check-in. The error is:
algparam.h: In constructor 'ConstByteArrayParameter::ConstByteArrayParameter(const T&, bool) [with T = std::vector<byte, std::allocator<byte> >]':
filters.h:1444: instantiated from here
algparam.h:56: error: 'const class std::vector<byte, std::allocator<byte> >' has no member named 'data'
2018-11-03 20:00:29 -04:00
Jeffrey Walton
a4d97e9bf8
Use vec_shleft_octet to avoid confusion with vec_extract
2018-11-03 19:29:08 -04:00
Jeffrey Walton
4e3d160acc
Update comments
2018-11-03 18:56:59 -04:00
Jeffrey Walton
43cf1f0d95
Use vec_sldo to avoid confusion with vec_extract
2018-11-03 17:34:36 -04:00
Jeffrey Walton
aee045912a
Whitespace check-in
2018-11-03 16:42:35 -04:00
Jeffrey Walton
6aa6393bf3
Update documentation
2018-11-03 11:17:54 -04:00
Jeffrey Walton
4b4dbdb90a
Update documentation
2018-11-03 11:09:09 -04:00
Jeffrey Walton
bdeaae3ac9
Fix disjoint t[] and f[] when using SIMD implementations
2018-11-03 10:49:22 -04:00
Jeffrey Walton
600e2a8be4
Rewrite BLAKE2 classes to remove intermediate base class
2018-11-03 10:33:35 -04:00
Jeffrey Walton
06867e5caf
Guard BLAKE2 on CRYPTOPP_ALTIVEC_AVAILABLE
2018-11-03 05:50:34 -04:00
Jeffrey Walton
dfacc9f15c
Use CRYPTOPP_ALTIVEC_AVAILABLE values over defined
...
This allows users to -DCRYPTOPP_ALTIVEC_AVAILABLE=0 on the command line. It is especially important on PPC, which varies wildly among compilers dating back to the 2000's
2018-11-03 05:25:52 -04:00
Jeffrey Walton
aa7e90903e
Remove unneeded #undef's from BLAKE2_Compress32_POWER7
2018-11-02 21:24:55 -04:00
Jeffrey Walton
d68d01066f
Cleanup return statements in PowerPC's VectorSet32
2018-11-02 21:23:41 -04:00
Jeffrey Walton
fc17f160ac
Remove unneeded BLAKE2B_IV from Blake2s source file
2018-11-02 19:21:57 -04:00
Jeffrey Walton
5dca85b819
Split Blake2 SIMD files into blake2s-simd.cpp and blake2b-simd.cpp (GH #729 , GH #731 )
...
The split was required for Blake2b and Power8; Blake2s only requires Power7
2018-11-02 19:09:36 -04:00
Jeffrey Walton
d2b64a4d63
Add BLAKE2b Power8 implementation (GH #731 )
2018-11-02 18:34:46 -04:00
Jeffrey Walton
1fd8ac8b8b
Use vec_perm on PowerPC little-endian for GCC
2018-11-01 14:05:34 -04:00
Jeffrey Walton
c6d2729954
Update comments
2018-11-01 13:32:42 -04:00
Jeffrey Walton
bcfd8444e5
Use vec_mergeh and vec_mergel for PowerPC
...
Origian benchmarks showed no material difference. However, today we are seeing up to 0.4 cpb profit on GCC112.
2018-11-01 13:07:49 -04:00
orangefour
20f82c067e
Add VectorSource (GH #730 )
2018-11-01 06:49:04 -04:00
Jeffrey Walton
7c5da3e1ca
Update comments
2018-10-31 02:42:25 -04:00
Jeffrey Walton
a19385a684
Fix mask names
...
This follows IBM convention, where the lowest memory address is "high", and the highest memory address is "low"
2018-10-30 19:35:16 -04:00
Jeffrey Walton
95d454841c
Update documentation
2018-10-30 09:42:42 -04:00
Jeffrey Walton
659c0c113c
Add BLAKE2b Power8 implementation (GH #729 )
2018-10-30 06:20:31 -04:00
Jeffrey Walton
81db4ea5e3
Switch to pch.cpp for compile tests.
...
adhoc.cpp was a bit uncomfortable because we had to copy it out from adhoc.cpp.proto. For some reason CMake could not perform the copy, so we started using pch.cpp in CMake. This commit keeps them consistent.
We may have problems with one test, and that is the Newlib tests. I seem to recall they a C++ header included to properly identify its use. We cross that bridge during MinGW testing.
2018-10-29 08:41:54 -04:00
Jeffrey Walton
ffe63caae5
Add CXX awareness to CMake test script
2018-10-29 04:58:32 -04:00
Jeffrey Walton
1ff6f39ec6
Add proper declaration for Kalyna tables; and split from definitions
2018-10-28 06:09:46 -04:00
Jeffrey Walton
1d0c6dd916
Cleanup SHA SIMD source file
...
Add proper declaration for SHA256_K and SHA512_K tables; and split from definitions
2018-10-28 04:45:26 -04:00
Jeffrey Walton
c601213ce1
Sync CRYPTOPP_{BIG|LITTLE}_ENDIAN with Autotools
...
Autotools sets up its config.h file with the '#define XXX 0' or '#define XXX 1' pattern. This check-in makes the sources Autotools aware. We need to verify CMake does the same
2018-10-28 04:24:22 -04:00
Jeffrey Walton
e185cbd803
Revert "Sync CRYPTOPP_{BIG|LITTLE}_ENDIAN with Autotools"
...
This reverts commit 04306f86ac . It broke GCC 4.8 on PowerPC.
2018-10-28 03:42:50 -04:00
Jeffrey Walton
a7615a8c7c
Add packed 32-bit Shuffle specializations for ChaCha on Power8
2018-10-28 00:48:18 -04:00
Jeffrey Walton
542140621a
Update comments
2018-10-27 14:01:25 -04:00
Jeffrey Walton
a281cd9d48
Add ChaCha recipes to GNUmakefile-cross
2018-10-27 12:59:29 -04:00
Jeffrey Walton
e9e317525e
Whitespace check-in
2018-10-27 12:49:22 -04:00
Jeffrey Walton
1cf4f98df8
Update comments
2018-10-27 12:46:01 -04:00
Jeffrey Walton
06d0072d6a
Add CRYPTOPP_DISABLE_ASM to dependency recipe
...
This stops the inclusion of SSE headers without arch options that break the recipe
2018-10-27 11:34:11 -04:00
Jeffrey Walton
d7d76fa5f7
Add ChaCha Power8 implementation
2018-10-27 08:40:07 -04:00
Jeffrey Walton
04306f86ac
Sync CRYPTOPP_{BIG|LITTLE}_ENDIAN with Autotools
2018-10-27 07:30:15 -04:00
Jeffrey Walton
8b00a9ff3f
Fix compile error on AIX
...
Apparently "hz" is an identifier somewhere in the bowels AIX standard headers
2018-10-27 06:52:59 -04:00
Jeffrey Walton
5dfa9086b7
Add VectorStore(byte*, vector) overload
2018-10-27 06:25:05 -04:00
Jeffrey Walton
5e897710e8
Update documentation
2018-10-27 06:19:59 -04:00
Jeffrey Walton
5d1de662bb
Spelling
2018-10-27 03:33:29 -04:00
Jeffrey Walton
55bb2c8b03
Update documentation
2018-10-27 02:05:49 -04:00
Jeffrey Walton
2b4911abee
Update documentation
2018-10-27 00:48:10 -04:00
Jeffrey Walton
16768df2e5
Update documentation
2018-10-26 19:29:15 -04:00
Jeffrey Walton
ca97f6fafb
Add addition helper for Aarch32 and Aarch64
...
Update comments
2018-10-26 13:42:09 -04:00
Jeffrey Walton
21d69598ab
Add CRYPTOPP_DISABLE_ASM to dependency recipe
...
This stops the inclusion of SSE headers without arch options that break the recipe
2018-10-26 11:10:07 -04:00