Jeffrey Walton
769643bbe1
Fix macro paste in CRYPTOPP_ASSERT_JOIN
2019-07-14 19:09:05 -04:00
Jeffrey Walton
388a2e6ded
Fix macro paste in CRYPTOPP_ASSERT_JOIN
2019-07-14 19:04:52 -04:00
Jeffrey Walton
f5881d121a
CRYPTOPP_CXX11_STATIC_ASSERT -> CRYPTOPP_CXX14_STATIC_ASSERT
...
WHoops, this is a C++14 feature
2019-07-14 19:02:58 -04:00
Jeffrey Walton
002e794ae2
Use C++ static_assert from N3928 when available
2019-07-14 18:28:51 -04:00
Jeffrey Walton
5de1089c8c
Update documentation
2019-07-14 12:50:50 -04:00
Jeffrey Walton
e8b07b162f
Avoid preprocessor error in SIZE_MAX (GH #864 )
2019-07-14 00:52:30 -04:00
Jeffrey Walton
6ae9c055cc
Move CRYPTOPP_CXX11 down in list of defines
2019-07-11 12:12:19 -04:00
Jeffrey Walton
f0d7917719
Move CRYPTOPP_NO_CXX11 and CRYPTOPP_NO_CXX17 to config_cxx.h
...
It looks like these two were overlooked during refactoring
2019-07-11 12:10:19 -04:00
Jeffrey Walton
8260dd1e81
Increase m_buf size (GH #862 )
2019-07-10 15:54:48 -04:00
Jeffrey Walton
6d69043403
Add BufferedTransformation GetWord64 and PutWord64 (GH #862 )
2019-07-10 10:04:58 -04:00
Jeffrey Walton
a76c6a203f
Update documentation
2019-07-10 08:10:44 -04:00
Jeffrey Walton
60e7bf3081
Update documentation
2019-07-08 18:46:27 -04:00
Jeffrey Walton
195cd6e7c8
Update documentation
2019-07-06 16:06:27 -04:00
Jeffrey Walton
2ffa70fbc6
Clear asserts under DEBUG builds
2019-07-06 15:57:08 -04:00
Jeffrey Walton
fd7115fc8b
Remove duplicate CRYPTOPP_GCC_VERSION test
2019-07-06 08:06:00 -04:00
Jeffrey Walton
b76a010dda
Cleanup PowerPC defines
2019-07-06 07:35:36 -04:00
Jeffrey Walton
f0a2967191
Fix missing binary operator
2019-07-06 07:07:16 -04:00
Jeffrey Walton
37de652635
Use C++ feature test macros when available
...
There are not too many of them. __cpp_threadsafe_static_init may be useful for less frequently used compilers and platforms.
2019-07-06 07:03:26 -04:00
Jeffrey Walton
76fa704cbe
Avoid potential uninitialized read in AutoSeededX917RNG
...
This is a minor fix to AutoSeededX917RNG::Reseed. Valgrind produces a finding if user input is too small or seed size is too large. The constraints make it a little tricky to use correctly. HKDF will always produce the correct amount of material with provable security, and avoid the Valgrind finding.
2019-07-06 02:58:43 -04:00
Jeffrey Walton
6c995e215a
Fold CRYPTOPP_VALGRIND into CRYPTOPP_COVERAGE
2019-07-05 19:10:01 -04:00
Jeffrey Walton
d4b3e1535a
Limit GCC workaround to 5.3 on PowerPC
...
GCC fixed the issue at GCC 5.3. Also see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31690
2019-07-05 18:08:05 -04:00
Jeffrey Walton
9c28cf2227
Whitespace check-in
...
Cleanup after the VMAC fixes
2019-07-05 17:26:50 -04:00
Jeffrey Walton
ad99fc5b05
Clear Asan finding in VMAC under 32-bit inline ASM (GH #860 )
...
Second try. The first try cleared the Asan finding but broke at -O3. Eventually we will skin this cat.
2019-07-05 16:33:01 -04:00
Jeffrey Walton
7fd751ed36
Revert Asan finding in VMAC change (GH #860 )
...
cryptest.sh showed it broke at -O3
2019-07-05 11:58:35 -04:00
Jeffrey Walton
f7986129df
Clear Asan finding in VMAC under 32-bit inline ASM (GH #860 )
...
This one has been nagging us for a while. Tested OK under i686 and x86_64.
2019-07-05 03:38:03 -04:00
Jeffrey Walton
6bead34bd9
Update headers for 'make dep'
2019-07-05 02:42:27 -04:00
Jeffrey Walton
ae04195d1f
Use xattr in cryptest-autotools.sh
2019-07-04 16:06:51 -04:00
Jeffrey Walton
6afa6fc213
Fix cryptest-autotools.sh on OS X
...
Needed to remove quarantine bit
2019-07-04 15:36:17 -04:00
Jeffrey Walton
6eeebaf26b
Update documentation
2019-07-04 13:57:33 -04:00
Jeffrey Walton
2baa37efac
Clear unused parameter warnings for GCC with -Wextra (GH #856 )
2019-07-03 15:17:53 -04:00
Jeffrey Walton
cd0d145635
Add legacy ECIES EC2N cryptosystem and kat (GH #856 )
2019-07-03 03:06:58 -04:00
Jeffrey Walton
ce6d3c1306
Add legacy ECIES ECP cryptosystem and kat (GH #856 )
2019-07-03 01:41:23 -04:00
Mouse
5d0ceb3b04
Revert #857 for now
...
Travis CI fails "deep tests" of DLIES with #857 applied. Let's revert it for now and get back to
```c++
cipherKey = key + MAC::DEDAULT_KEYLENGTH;
```
and see if it improves the situation.
2019-07-02 23:24:45 -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
Alon Bar-Lev
2eb400c52f
config: guard CRYPTOPP_SSE2_INTRIN_AVAILABLE with CRYPTOPP_DISABLE_SSE2 ( #858 )
...
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2019-07-02 16:45:03 -04:00
Mouse
c80a7ad028
Merge pull request #857 from rectalogic/nullhash
...
Use MAC::DIGESTSIZE in ECIES SymmetricEncrypt/SymmetricDecrypt
2019-07-02 11:06:29 -04:00
Mouse
97f5174226
Complete change from DEFAULT_KEYLENGTH to DIGESTSIZE in DLAES
...
Change from `MAC::DEFAULT_KEYLENGTH` to `MAC::DIGESTSIZE` in `DL_EncryptionAlgorithm_Xor` was only partially done. This was discovered when null hash was used. This, along with the proposed fix, was discovered by Andrew Wason (thanks!).
2019-07-02 11:02:07 -04:00
Andrew Wason
9c307ff4ba
Use MAC::DIGESTSIZE in ECIES SymmetricEncrypt/SymmetricDecrypt
...
Fixes #856
2019-07-02 10:47:46 -04:00
Jeffrey Walton
445ec61125
Remove copy ctor from DERGeneralEncoder and BERGeneralDecoder
...
GCC was giving too many warnings at -Wextra. We also could not comply with Rule of 3 because it resulted in compile failures in C++98 and C++03
2019-07-01 13:29:46 -04:00
Jeffrey Walton
c3d4e79a09
Use CRYPTOPP_CXX11_DELETED_FUNCTIONS in NotCopyable
2019-07-01 13:27:51 -04:00
Jeffrey Walton
36e8dfeca8
Add define for C++11 deleted functions
2019-07-01 08:17:22 -04:00
Jeffrey Walton
18d5e5528f
Fix divide by 0 finding (GH #855 )
...
I'm not sure which tool is producing this finding. I am pretty sure it is a false positive, but clear it for the sake of dark and silent cockpits
2019-06-28 14:22:03 -04:00
Jeffrey Walton
26a59cd94b
Update README
2019-06-15 06:42:34 -04:00
Jeffrey Walton
840bc65740
Update README
2019-06-15 06:20:49 -04:00
Mouse
03619c0800
Merge pull request #853 from DimaStebaev/pull-request
...
Compilation warning fix.
2019-06-12 07:37:52 -04:00
Dmytro Stebaiev
d24c991913
Pull changes from master branch
2019-06-10 11:25:46 +03:00
Jeffrey Walton
0ea4354157
Update comments
2019-06-09 12:52:10 -04:00
Jeffrey Walton
570a8e1b36
Whitespace check-in
2019-06-09 12:12:46 -04:00
Jeffrey Walton
955ac6fe24
Rework SSE2 and AVX2 loads and stores
2019-06-09 04:29:40 -04:00