Commit Graph

166 Commits (7c7cb15f361d85cb220dd2f41c5d0a3d57f0fe49)

Author SHA1 Message Date
Jeffrey Walton ec8c794a26 Removed duplicate C++11 atomics block. Fixed comment on CRYPTOPP_CXX11_ALIGNAS availability under MS toolchain 2016-05-30 17:46:00 -04:00
Jeffrey Walton 3a26c34721 Simplified tests ARM features. Tied ARM intrinsics to CRYPTOPP_DISABLE_ASM to allow easier user control and testing 2016-05-22 13:02:53 -04:00
Jeffrey Walton 733c78ba23 Relocate ARM defines to contribute to CRYPTOPP_BOOL_ALIGN16 2016-05-21 15:50:04 -04:00
Jeffrey Walton d7c832b813 Remove ILP32 from CRYPTOPP_L1_CACHE_LINE_SIZE. Clang defines it for all 32-bit data models, and not just X32 2016-05-20 16:38:42 -04:00
Jeffrey Walton 9534ce5bc5 Add ARM-64 defines for CRYPTOPP_L1_CACHE_LINE_SIZE 2016-05-20 16:28:55 -04:00
Jeffrey Walton 5e719b95bb Merge branch 'master' into windows-store 2016-05-16 20:38:02 -04:00
Jeffrey Walton f21c15d7af Fix iOS ARM CRC32 and Crypto detection 2016-05-16 20:37:22 -04:00
Jeffrey Walton b42cc4676f Merge branch 'master' into windows-store 2016-05-16 18:48:49 -04:00
Jeffrey Walton e846beac35 Add defines for ARMv8 CRC32 and Crypto extensions 2016-05-16 18:47:31 -04:00
Jeffrey Walton 1f70c6aecc Merge branch 'master' into windows-store 2016-05-15 08:25:45 -04:00
Jeffrey Walton 480532931b Improve Apple iOS support for ARM and NEON. Add ARM Crypto detection 2016-05-15 08:24:51 -04:00
Jeffrey Walton 8313d082ad Merge branch 'master' into windows-store 2016-05-15 05:59:30 -04:00
Jeffrey Walton 950cf4cdb9 Improve ARM feature detection for ARM64 2016-05-15 05:37:39 -04:00
Jeffrey Walton ba6e56e4a2 Merge branch 'master' into windows-store 2016-05-15 02:40:34 -04:00
Jeffrey Walton 01f77765d4 Add basic ARM and Windows Store support 2016-05-15 02:30:08 -04:00
Jeffrey Walton d294b4290b Add changes for Windows Sotre that went missing with my clumsy Git skills 2016-05-09 03:07:57 -04:00
Jeffrey Walton b499b8ba65 Fix Windows Phone compile (Issue 162) 2016-04-25 16:36:54 -04:00
Jeffrey Walton dfac7ec28b Fix Debian 8/GCC 4.9 compile on Core2 Duo 2016-04-25 01:43:45 -04:00
Jeffrey Walton d83e4a0704 Add comment on test vectors used for CRYPTOPP_USE_FIPS_202_SHA3 2016-04-24 00:03:21 -04:00
Jeffrey Walton 01d137155c Add SHA3/FIPS 202 test vectors. Add note to config.h on uncommenting sha3_fips_202.txt when defining CRYPTOPP_USE_FIPS_202_SHA3 2016-04-23 21:55:47 -04:00
Jeffrey Walton df1c94a38a Initial cut-in of CRYPTOPP_USE_FIPS_202_SHA3 macro 2016-04-23 18:47:23 -04:00
Jeffrey Walton 2b311f2194 Add CRYPTOPP_DEPRECATED macro 2016-04-23 16:45:35 -04:00
Jeffrey Walton a11c9e7574 Add SSE4.1 and SSE4.2 feature detection 2016-04-15 16:23:04 -04:00
Jeffrey Walton d8b02cfaaf Fixed m68k detection (Issue 153) 2016-04-06 01:47:45 -04:00
Jeffrey Walton 9b260cf75a Merge branch 'integer-master' of https://github.com/DevJPM/cryptopp into DevJPM-integer-master 2016-01-14 10:03:05 -05:00
DevJPM 36f5e4c4c8 updated to offer the option to hide the base
Added the config.h related changes of the Integer patch (show_no_base only)
2016-01-13 22:38:56 +01:00
Crayon2000 0892ee411b C++Builder: The problem with the CRYPTOPP_CONSTANT macro was corrected properly 2016-01-12 12:29:44 -05:00
Jeffrey Walton 3941be1889 Fixed hang on ARM platforms in Integer::DivideThreeWordsByTwo 2016-01-08 06:53:27 -05:00
Jeffrey Walton a0b078543a Added CRYPTOPP_DATA_DIR patch (Issue 82) 2015-12-25 23:50:28 -05:00
Marco Deckel f6499edf3a Microsoft ARM support
* Adjusted config to compile for Microsoft ARM (e.g. Windows Universal apps)
2015-12-14 16:11:17 +01:00
Jeffrey Walton 1e17620417 Fixed STLport detection for Android 14 and below 2015-12-09 04:09:30 -05:00
Jeffrey Walton c08cac0cd1 Fixed failed compile on OS X using "-arch i386" due to Clang defining __ILP32__ for everything that is 32-bit. MSVC, GCC, ICC and Comeau were OK 2015-12-02 15:54:35 -05:00
Jeffrey Walton 298988a5b9 Crypto++ 5.6.3 check-in 2015-11-22 19:17:15 -05:00
Jeffrey Walton 62618fda97 Revert botched "Crypto++ 5.6.3 check-in". Corruption due to VMware adding garbage to the end of some source files during drag and drop from guest to host.
This reverts commit c454358122.
2015-11-22 19:11:31 -05:00
Jeffrey Walton c454358122 Crypto++ 5.6.3 check-in 2015-11-20 19:15:33 -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 651ba89176 Added CRYPTOPP_POSIX_ASSERT to config.h for those who want original Posix behavior of abort(). Additional cleanup of CRYPTOPP_CXX11 defines 2015-08-03 17:14:55 -04:00
Jeffrey Walton 2a09da77d6 Change _MSC_VER to 2300 (sometime around VS2019) for CRYPTOPP_CXX14. Its just a guess that won't collide in the near future... 2015-07-31 02:14:00 -04:00
Jeffrey Walton 9fd44748c1 Added define for CRYPTOPP_CXX14 so we can pick up operator "" and small string optimizations (SSO) 2015-07-31 02:11:32 -04:00
Jeffrey Walton c7e5bebcf2 Fixe compiler error under MinGW due to typedef'ing ssize_t. Cygwin OK 2015-07-30 14:38:54 -04:00
Jeffrey Walton efaaea4a90 Whitespace checkin 2015-07-30 14:33:17 -04:00
Jeffrey Walton 458d582ab1 Added typedef for missing ssize_t on Windows. We used the same definitions Windows provided for the datatypes on MSDN, so it should not cause compiler problems (at least under Windows compilers) 2015-07-30 14:26:17 -04:00
Jeffrey Walton e79ae73295 Finished alloca cleanup under the BSDs 2015-07-28 18:18:56 -04:00
Jeffrey Walton 418dd2a870 Fixed #error left in header that was used for testing 2015-07-27 14:44:55 -04:00
Jeffrey Walton 8dd3a77e11 Fixed compiler error " error: missing binary operator before token 'defined'" 2015-07-27 14:43:18 -04:00
Jeffrey Walton 23d28aa123 Fixed complier error "error: missing ')' after 'defined'" 2015-07-27 14:41:13 -04:00
Jeffrey Walton e40ff65269 Fixed spelling error: __cpluplus → __cplusplus 2015-07-27 09:40:36 -04:00
Jeffrey Walton 66ff5e14f1 Improved GCC test by adding "__GNUC__ >= 5" 2015-07-27 01:32:10 -04:00
Jeffrey Walton 23f59f6b28 Added tests for Intel compilers. Tightened tests on GCC since the others claim to be GCC, but fail to compile programs that GCC can compile 2015-07-27 00:17:41 -04:00
Jeffrey Walton 8e868bf2e5 Tuned preprocessor tests. Added CRYPTOPP_THROW to AlgorithmParametersBase 2015-07-26 21:57:10 -04:00
Jeffrey Walton 46edae68a5 Added C++11 R-value and noexcept feature detection 2015-07-26 20:36:24 -04:00
Jeffrey Walton 3fd7a239f0 Backed out Clang integrated assembler changes. LLVM Bug 24232 pushed us over the edge. There is some skeleton code remaining for testing. To activate it, perform "make FORCE_ASM=1" 2015-07-23 16:47:03 -04:00
Jeffrey Walton 5daa168a93 Cleaned up CRYPTOPP_CLANG_INTEGRATED_ASSEMBLER and WORKAROUND_LLVM_BUG_18916 defines 2015-07-23 03:29:21 -04:00
Jeffrey Walton 6d0dd41eb0 Specialized defines to work with/around Clang integrated assembler. The two defines are WORKAROUND_LLVM_BUG_18916 and CRYPTOPP_USING_CLANG_INTEGRATED_ASSEMBLER. Once the 18916 bug is fixed, the other issues around the integrated assembler will remain 2015-07-22 03:48:10 -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 06ea2d2952 Cleared Cygwin i386 crash at -O3 due to unaligned data access and vectorization 2015-07-16 00:50:13 -04:00
Jeffrey Walton 9bf0eed0f6 Cleared crash with GCC 4.8 and above and -O3. In a nutshell, it was due to vectorization and alignment violations agains the vmovdqa instruction 2015-07-13 22:53:16 -04:00
Jeffrey Walton c6abf130eb Moved GCC_DIAGNOSTIC_AWARE and GCC_OPTIMIZE_AWARE into misc.h 2015-07-13 00:39:13 -04:00
Jeffrey Walton f2379159f8 Added COUNTOF to misc.h to count elements in an array (fails on pointers). Moved CRYPTOPP_UNUSED to misc.h 2015-07-03 15:40:44 -04:00
Jeffrey Walton e67480dd9e Enabled security related warnings; see http://blogs.msdn.com/b/vcblog/archive/2010/12/14/off-by-default-compiler-warnings-in-visual-c.aspx 2015-06-29 05:49:40 -04:00
Jeffrey Walton a14a5696e1 Added GCC_DIAGNOSTIC_AWARE to help suppress some warnings on contemporary compilers. The macro was needed to help with managing old compilers, like GCC 4.2.1, present on OpenBSD 2015-06-29 02:09:02 -04:00
Jeffrey Walton 1d237fe79d Added test case for CRYPTOPP_UNUSED by applying it to argc and argv in tes.cpp (even though they are used) 2015-06-07 20:56:49 -04:00
Jeffrey Walton 5f25c73635 Add CRYPTOPP_UNUSED to help supress unused variable warnings. Applied to AlgorithmParametersTemplate because its use is nearly ubiquitous 2015-06-04 23:24:15 -04:00
weidai 2fb44ea6db add SHA-3
update DSA to FIPS 186-3
update version numbers
2013-01-19 02:20:00 +00:00
weidai 045d804f9b fix compile with GCC 4.4 and -march=i386
fix minor documentation issues
fix compile w/o GAS 2.19 or later
2010-08-08 23:02:36 +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 954fed3d5d update version number to 5.6.1 2010-06-29 02:48:56 +00:00
weidai 0c8667344c fix endianess test on MIPS (Zhang Le) 2009-09-04 10:37:59 +00:00
weidai 5e19e65655 fix compile on OpenBSD 4.4 2009-03-13 22:13:21 +00:00
weidai 3202bf2809 fix compile on OpenSolaris 8.11 2009-03-13 11:15:21 +00:00
weidai d6b4e54448 fix compile on MSVC 6 2009-03-13 02:55:23 +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 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 fa25129ac9 port to Sun Studio 12's 64-bit C++ Compiler 5.9 Patch 124864-09 2008/12/16 2009-02-13 12:18:26 +00:00
weidai f871754502 fix compile with GCC 4.0.1 on MacOS X 64-bit 2008-12-22 06:55:08 +00:00
weidai c9c1fdbcb4 fix compile with ICC 9.1 on x64 2007-09-24 07:05:29 +00:00
weidai b240c52bd9 fix warning on MSVC Orcas Beta 2 2007-08-15 23:36:16 +00:00
weidai ae88c18bf7 fixed Whirlpool crash on Pentium 2 machines 2007-08-13 23:53:09 +00:00
weidai 83abc985b2 fix compile for VC6 without processor pack, and GCC 4 on MINGW 2007-06-01 17:28:31 +00:00
weidai 87356fd44e fix compile with ICC for ia64 2007-05-05 04:12:36 +00:00
weidai d2f4175c59 fix compile with Sun CC 2007-05-05 02:15:11 +00:00
weidai f46f0d73c5 fix compile on Mac OS X 2007-05-04 20:46:32 +00:00
weidai a740a0ff83 fix warning with Intel compiler 2007-05-04 19:56:16 +00:00
weidai 240a14e561 add word128 2007-05-04 15:25:08 +00:00
weidai 3a3fef7436 fix compile on Sun CC 2007-04-16 05:40:37 +00:00
weidai a30a7f4ed3 changes to support optimizations 2007-04-16 00:39:09 +00:00
weidai 146e78f4c9 fix compile on MSVC2002 and MSVC6 without Processor Pack 2006-12-25 08:10:19 +00:00
weidai 826889105d fix compile with Sun CC 64-bit 2006-12-20 15:20:02 +00:00
weidai 43b41c1042 update version number, port to Sun C++ 5.8 2006-12-18 02:34:33 +00:00
weidai 4afd858ae4 port to Borland C++Builder 2006 2006-12-14 11:41:39 +00:00
weidai 0efd938656 improved method of disable inlining, fix compile on NetBSD 2006-12-11 09:13:12 +00:00
weidai c8e2f89594 AES timing attack countermeasures 2006-07-17 14:48:59 +00:00
weidai 58f6207c4d fix TYPE_OF_SOCKLEN_T for Darwin 2006-01-30 13:59:16 +00:00
weidai 09bb1aab64 port to GCC 4 2005-09-05 21:43:43 +00:00
weidai 1db8ea5084 port to MSVC .NET 2005 beta 2 2005-07-12 04:23:32 +00:00
weidai b3924f2108 changes done for FIPS-140 lab code drop 2005-01-20 04:19:35 +00:00
weidai d617e3d925 fix compile with -msse2 on systems without memalign() 2004-07-18 09:23:13 +00:00
weidai ebbfa72763 allow compile with STLport again 2004-07-03 01:20:11 +00:00
weidai bdf3852cf0 port to CodeWarrior 8.3 2004-06-20 17:56:15 +00:00