Commit Graph

5278 Commits

Author SHA1 Message Date
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
Jeffrey Walton
8c78985de2
Add ModularArithmetic::operator= 2019-06-09 02:56:30 -04:00
Jeffrey Walton
c1f4d17e10
Cleanup BERGeneralDecoder constructors
For real this time...
2019-06-09 02:03:06 -04:00
Jeffrey Walton
55fe6a2191
Cleanup BERGeneralDecoder constructors 2019-06-09 02:00:53 -04:00
Jeffrey Walton
8fab1c3677
Revert changes for lgtm findings
This broke SunCC to the point of no repair. SunCC is using AVX2 instructions for C++ and SSE2. Man this compiler sucks...
2019-06-09 01:49:44 -04:00
Jeffrey Walton
3ce1823fd1
Fix SunCC compile
Sun's compiler is mostly braindead.
2019-06-09 00:00:22 -04:00
Jeffrey Walton
6a11f00768
Clear lgtm findings 2019-06-08 12:59:14 -04:00
Jeffrey Walton
43b01973b1
Clear lgtm findings
We did some refactoring and added sse_simd.h. Over time more SSE functions will likely move into sse_simd.h
2019-06-08 11:00:11 -04:00
Jeffrey Walton
afffba7b7b
Add -mtune=native option to makefile
Added for Solaris 11 .3 on SPARC64
2019-06-07 13:02:25 -04:00
Dmytro Stebaiev
fa9187ac77
Fix compilation warning 2019-06-07 18:17:15 +03:00
Jeffrey Walton
ed4996f652
Cleanup governor.sh script 2019-06-05 23:21:00 -04:00
Jeffrey Walton
29a30b74b0
Update head comments 2019-06-05 23:09:58 -04:00
Jeffrey Walton
17fa3031b3
Clear lgtm finding in ECP class 2019-06-05 10:52:45 -04:00
Jeffrey Walton
d8122cec16
Avoid ARM rev on Aarch64
This broke Aarch64
2019-06-04 21:17:13 -04:00
Jeffrey Walton
6c009ddf43
Remove dummy operator= in ModularArithmetic 2019-06-04 19:05:33 -04:00
Jeffrey Walton
994c98b6c0
Fix GCC compile on AIX
In file included from test.cpp:31:0:
validate.h:213:93: error: operator '||' has no right operand
 #elif (_POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE || _POSIX_SOURCE)
2019-06-04 09:45:33 -04:00
Jeffrey Walton
3afb1f1099
Fix GCC compile on AIX
In file included from test.cpp:31:0:
validate.h:213:93: error: operator '||' has no right operand
 #elif (_POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE || _POSIX_SOURCE)
2019-06-04 09:37:28 -04:00
Jeffrey Walton
198b081df5
Add assert to RemainingLength member function 2019-06-04 09:29:01 -04:00
Jeffrey Walton
238578a808
Clear lgtm findings
The lgtm service asks for scoped calls to IsolatedInitialize. The code is a tad bit more readable, so we will clear the findings.
2019-06-04 05:31:46 -04:00
Jeffrey Walton
462bcc859d
Update Poly1305 nonce length check 2019-06-04 04:39:19 -04:00
Jeffrey Walton
a644008679
Cleanup ASN.1 encoders and decoders (GH #851) 2019-06-04 02:49:16 -04:00