Commit Graph

54 Commits

Author SHA1 Message Date
Jeffrey Walton
1cb906938d Fix SunCC 12.2 and 12.3 failed compile in rijndael.cpp due to std::swap(__m128i, __m128i) 2016-07-16 23:45:16 -04:00
Jeffrey Walton
ba2c778f1b Fix typo in SunCC check 2016-07-15 01:53:01 -04:00
Jeffrey Walton
b099030c46 Fix broken rijndael.cpp compile under Sun Studio (Issue 224) 2016-07-15 00:40:13 -04:00
Jeffrey Walton
c1f025343a Add C++11 alignas support. Deleting 'alignas' branch 2016-06-14 19:14:09 -04:00
Marcel Raad
f43b7c95cd Check for SSE4 support before using SSE4.1 instruction
In a 32-bit Windows program compiled with Visual C++ 2013 Update 5, we
sometimes get crashes because of an exception "0xC000001D: Illegal Instruction"
on the pextrd (_mm_extract_epi32) instruction. Explicitly check for SSE4
support instead of only AES-NI before using this SSE4.1 instruction.
2016-05-10 12:43:49 +02:00
Jeffrey Walton
22f493dda9 Fix the Rijndael timing attack counter measure (Issue 146) 2016-04-12 14:43:39 -04:00
Jeffrey Walton
50e5c14c18 Improve constant propagation of fix for Issue 146 2016-04-07 19:20:33 -04:00
Jeffrey Walton
ab393851ec Revert "Improve performance of fix to Issue 146"
This reverts commit 5cce8c33ca. It was an incomplete remediation because it was applied to one area of the code, and not both areas of the code. The complete remediation will be checked-in next.
2016-04-07 19:14:11 -04:00
Jeffrey Walton
5cce8c33ca Improve performance of fix to Issue 146 2016-04-07 19:05:30 -04:00
Pierre Lestringant
9f335d719e Fix the Rijndael timing attack counter measure 2016-04-06 15:51:17 +02:00
Jeffrey Walton
823bc93357 Add call for _malloca/_freea. They are SDLC compliance items on Windows platform 2016-02-09 16:37:19 -05:00
Jeffrey Walton
b773052b3d Temporary fix for Issue 42 and 132 2016-02-07 04:52:59 -05:00
Jeffrey Walton
c8de423ab5 Fix missing CryptoPP::rdtable::Te symbol for Microsoft SSE2 non-AESNI X64 platforms when CRYPTOPP_NO_UNALIGNED_DATA_ACCESS defined 2016-02-06 22:19:53 -05:00
Jeffrey Walton
58ed2fcd37 Removed CRYPTOPP_ALLOW_RIJNDAEL_UNALIGNED_DATA_ACCESS. No longer necessary 2016-02-05 02:46:26 -05:00
Jeffrey Walton
d55d7fe90a Removed garbage charcters suffixed to CRYPTOPP_GENERATE_X64_MASM. They appear to have entered on November 15, 2015 with commit 48809d4e85 2016-02-05 00:27:23 -05:00
Jeffrey Walton
ab320ad59b Cleared -Wcast-align (Issue 122) 2016-01-25 22:03:07 -05:00
Jeffrey Walton
a44e823c3c Re-constify intermediate void* cast 2016-01-25 19:56:17 -05:00
Jeffrey Walton
c76114705c Cleared -Wcast-align (Issue 122). No asserts added because X86/X32/X64 uses unaligned accesses with the compressed tables 2016-01-25 19:30:35 -05:00
Jeffrey Walton
0e3ee98ff6 Fixed Clang 3.4 compiler error on Linux 2015-12-25 08:00:05 -05:00
Jeffrey Walton
6ac1e46a1f Cleared issues 11,12,13 (Clang integrated assembler), 58 (RC rollup), 66 (Coverity rollup) 2015-11-18 15:32:28 -05:00
Jeffrey Walton
48809d4e85 CRYPTOPP 5.6.3 RC6 checkin 2015-11-05 01:59:46 -05:00
Jeffrey Walton
25cc4c2db1 Fixed compile error on MinGW due to including <alloca.h> 2015-07-27 16:36:05 -04:00
Jeffrey Walton
6b2129afb3 Added "include <alloca.h>" due to compile failure on Cygwin 2015-07-27 02:06:11 -04:00
Jeffrey Walton
b7de164d62 Cut-in CRYPTOPP_ASSERT in all remaining header and source files 2015-07-26 16:03:14 -04:00
Jeffrey Walton
7b64ca489a Added "trap.h" include for header and source files that assert 2015-07-26 15:51:16 -04:00
Jeffrey Walton
4d5be2d690 Cleared "signed/unsigned" warning under GCC 4.8 (this may have been a GCC 4.8/Debian-i686 issue because both types were unsigned) 2015-07-26 01:14:59 -04:00
Jeffrey Walton
3c56063c3f Added CRYPTOPP_CLANG_NO_INTEGRATED_AS as a guard in config.h (disabled by default since integrated-as is default behavior and the bug is active). GNU_ATT_SYNTAX → GNU_AS_ATT_SYNTAX and GNUINTEL_SYNTAX → GNU_AS_INTEL_SYNTAX 2015-07-21 18:05:48 -04:00
Jeffrey Walton
444d1f1a3b Cut-in to utilize GNU_ATT_SYNTAX and GNU_INTEL_SYNTAX macros. Also see LLVM Bug 18916 (https://llvm.org/bugs/show_bug.cgi?id=18916) 2015-07-21 14:37:55 -04:00
Jeffrey Walton
8f59d9af35 Cleared unused variable and function warnings 2015-07-19 10:22:16 -04:00
Jeffrey Walton
f5e4f6318e Cleared unknown pragma warning with -Wall 2015-06-08 02:30:53 -04:00
weidai
4621a652a8 fix for Valgrind error http://tahoe-lafs.org/trac/pycryptopp/ticket/67 2011-01-28 01:22:27 +00:00
weidai
5b3f486767 fix for https://sourceforge.net/apps/trac/cryptopp/ticket/6 2011-01-07 01:38:48 +00:00
weidai
a3f2091bcd fix compile on GCC 4.4 and greater 2010-07-29 08:51:39 +00:00
weidai
797192ea60 fix compile on Linux 2010-07-24 06:12:23 +00:00
weidai
7adbf89681 add support for AES-NI and CLMUL instruction sets in AES and GMAC/GCM 2010-07-24 05:55:22 +00:00
weidai
d60229a02a fix possible race condition in Singleton::Ref()
tolerate double destruction of Singleton and g_nullNameValuePairs
fix #include of standard headers
2010-06-18 07:06:59 +00:00
weidai
1f00d79595 fix bugs in AES assembly (from trantrungan and Andrew Bromba) 2009-07-05 22:30:24 +00:00
weidai
5b809d7931 fix compile on MacOS X and MinGW 2009-04-05 19:58:48 +00:00
weidai
13c3aa2f4e fix compile on MSVC 6 and MSVC 2003 2009-03-15 03:53:58 +00:00
weidai
3202bf2809 fix compile on OpenSolaris 8.11 2009-03-13 11:15:21 +00:00
weidai
2779fc6050 - add EAX mode, XSalsa20
- speed up GCM key setup
- wipe stack in AES assembly code
- speed up CFB mode
2009-03-12 11:24:12 +00:00
weidai
8ca6148ad5 add x86/x64 assembly for SHA-256,
add DEFAULT_CHANNEL and AAD_CHANNEL,
fix macChannel for AuthenticatedEncryptionFilter
2009-03-10 02:56:19 +00:00
weidai
8565900724 tweaks/fixes for 5.6 2009-03-03 03:28:39 +00:00
weidai
7d88bbd9ed fix compile on non-x86 2009-03-02 05:23:21 +00:00
weidai
d8a644fc4e changes for 5.6:
- added AuthenticatedSymmetricCipher interface class and Filter wrappers
    - added CCM, GCM (with SSE2 assembly), CMAC, and SEED
    - improved AES speed on x86 and x64
    - removed WORD64_AVAILABLE; compiler 64-bit int support is now required
2009-03-02 02:39:17 +00:00
weidai
23accd43c5 - port x64 assembly code to MASM
- improve stack unwindability on x64 for GCC by not modifying RBP/RSP registers in inline assembly
2007-09-24 00:43:57 +00:00
weidai
d2510f30c7 fix compile for x64, DLL and VC 6 2007-05-04 15:24:09 +00:00
weidai
643b302227 MMX/SSE2 optimizations 2007-04-15 23:00:27 +00:00
weidai
146e78f4c9 fix compile on MSVC2002 and MSVC6 without Processor Pack 2006-12-25 08:10:19 +00:00
weidai
4afd858ae4 port to Borland C++Builder 2006 2006-12-14 11:41:39 +00:00