Commit Graph

219 Commits (1bbbfb6b7538e88f979c68aa70d6427ce2e98cc0)

Author SHA1 Message Date
Jeffrey Walton cecf719fcd
Add German digital signature algorithm (ECGDSA) (Issue 113)
Also see ISO/IEC 15946 and http://www.teletrust.de/fileadmin/files/oid/ecgdsa_final.pdf
2016-12-13 16:20:41 -05:00
Jeffrey Walton 26db40567d
Add Integer Bitops tests (Issue 344) 2016-12-06 20:56:57 -05:00
Jeffrey Walton ba75834ae9
Removed VC++ 5.0 and 6.0 workarounds (Issue 342) 2016-12-03 05:05:56 -05:00
Jeffrey Walton 62e99837e8
Add Poly1305 class (Issue 338) 2016-11-27 15:31:50 -05:00
Jeffrey Walton ac01277d93
Add X86 SHA cpu feature detection 2016-10-26 22:35:24 -04:00
Jeffrey Walton e794d53806
Cleanup comments 2016-10-18 02:23:07 -04:00
Jeffrey Walton 51d3cc945f
Switch to std::copy due to MinGW issues with memcpy_s
Also see http://github.com/weidai11/cryptopp/issues/28 and http://groups.google.com/d/msg/cryptopp-users/PRTVKTh0gRk/euPM_TzdBAAJ
2016-10-18 02:02:49 -04:00
Jeffrey Walton 54d17c7361
Updated CRYPTOPP_ASSERT based on comments
Also see 399a1546de (commitcomment-19448453)
2016-10-17 22:00:31 -04:00
Jeffrey Walton c621ce0532
Add misc.h header for library's memcpy_s 2016-10-11 00:02:23 -04:00
Jeffrey Walton 32fa9f6a8b
Remove deprecated warning supressions under MSC
pragma warning(disable: 4996)
2016-10-10 17:33:13 -04:00
Jeffrey Walton fb6a11ff08 Remove library supplied aesenc, aesdec and friends (Issue 206) 2016-09-18 21:06:41 -04:00
Jeffrey Walton 01b4ada148 Merge dev-branch 'trap' into 'master' 2016-09-17 17:21:53 -04:00
Jeffrey Walton 91ca6c117d Change from NDEBUG to CRYPTOPP_DEBUG in source files to ensure all debug behavior pivots on CRYPTOPP_DEBUG, and not NDEBUG (Issue 277, CVE-2016-7420) 2016-09-16 14:51:48 -04:00
Uri Blumenthal 8ad82f3f66 $%^@! 448 bits is 56 bytes, not 58!!! Fixing that oversight. 2016-09-16 12:36:05 -04:00
Uri Blumenthal 58c33810e7 Restore MARS capability to use 448-bit keys 2016-09-16 12:19:12 -04:00
Jeffrey Walton 399a1546de Add CRYPTOPP_ASSERT (Issue 277, CVE-2016-7420)
trap.h and CRYPTOPP_ASSERT has existed for over a year in Master. We deferred on the cut-over waiting for a minor version bump (5.7). We have to use it now due to CVE-2016-7420
2016-09-16 11:27:15 -04:00
Jeffrey Walton 0d66fd8f82 Fixed use of FixedSizeAlignedSecBlock and non-aligned allocator in validat1.cpp (Issue 256) 2016-09-09 06:33:31 -04:00
Jeffrey Walton 7f958575ea Squashed commit of the following:
commit 47c75c6e9397e240919207e50e5a611d3e2a2428
Merge: d7685c2 42085ee
Author: Jeffrey Walton <noloader@gmail.com>
Date:   Thu Sep 8 20:20:39 2016 -0400

    Attempting to fix binary file merge conflict

commit d7685c2d946beecc419ddb6901c24e972c7cf3ee
Author: Jeffrey Walton <noloader@gmail.com>
Date:   Thu Sep 8 16:39:23 2016 -0400

    Add vsClean.cmd to vs2010.zip

commit 4b96fdf1c551260da60eb021f324bcc3fcfec626
Author: Jeffrey Walton <noloader@gmail.com>
Date:   Thu Sep 8 16:15:38 2016 -0400

    Add Keccak to vs2010.zip

commit 3962db73b7113ee805b46a5bb4da64e204fe6bb0
Author: Jeffrey Walton <noloader@gmail.com>
Date:   Thu Sep 8 15:40:35 2016 -0400

    Fold hmqv.cpp and fhmqv.cpp into mqv.cpp. There's no need for three empty source files

commit 44401448cbb6c8125b0f1ab4419c5b174408ffd7
Author: Jeffrey Walton <noloader@gmail.com>
Date:   Thu Sep 8 15:39:23 2016 -0400

    Fold hmqv.cpp and fhmqv.cpp into mqv.cpp. There's no need for three empty source files

commit 847bfccb8d5c388e67745dc8c69768fa503c5135
Author: Jeffrey Walton <noloader@gmail.com>
Date:   Thu Sep 8 14:48:02 2016 -0400

    Whitespace cleanup

commit 46a37be6fef361704dcf852bc9a099ce0a1da4c8
Merge: aefb8f8 3697867
Author: Jeffrey Walton <noloader@gmail.com>
Date:   Thu Sep 8 14:43:01 2016 -0400

    Merge 'master' into 'keccak'

commit aefb8f8ff2b81b967089c53b457a92fc6f7544d6
Merge: 51a828b 3c91d93
Author: Jeffrey Walton <noloader@gmail.com>
Date:   Thu Sep 8 12:39:51 2016 -0400

    Merge 'master' into 'keccak'

commit 51a828b88e37a4d18abb00300cd5522bd0e110c5
Merge: 4152870 e7c7722
Author: Jeffrey Walton <noloader@gmail.com>
Date:   Thu Sep 8 10:41:36 2016 -0400

    Merge 'master' into 'keccak'

commit 415287041e69ddadf5ca1f6fc794b87e145fc2db
Merge: 357a0c5 83ac849
Author: Jeffrey Walton <noloader@gmail.com>
Date:   Thu Sep 8 10:34:45 2016 -0400

    Merge 'master' into 'keccak'

commit 357a0c510f75e4e58078b500dd469462e90f7650
Author: Jeffrey Walton <noloader@gmail.com>
Date:   Thu Sep 8 10:13:32 2016 -0400

    Removed deprecated warning from SHA3 classes

commit 5cf9ec10d53b895b5a583e265e4e1298ed402195
Merge: 10ce0ed c2d60cc
Author: Jeffrey Walton <noloader@gmail.com>
Date:   Thu Sep 8 09:43:15 2016 -0400

    Merge 'master' into 'keccak'

commit 10ce0ed4c5b8a1ea230062fd2dfdec0d87ec5b42
Author: Jeffrey Walton <noloader@gmail.com>
Date:   Thu Sep 8 09:37:40 2016 -0400

    Add Keccak implementation based on early SHA3. Change SHA3 to NIST FIPS 202 conforming implementation
2016-09-08 20:24:25 -04:00
Jeffrey Walton 01b40aab31 Merge 'master' into 'hmqv' 2016-09-08 01:30:29 -04:00
Jeffrey Walton c80d179274 Merge 'master' into 'hmqv' 2016-09-07 12:29:48 -04:00
Jeffrey Walton 53bc3f146a Merge 'master' into 'constexpr' 2016-09-07 12:29:43 -04:00
Jeffrey Walton 8e5663fe23 Fix "error: integer constant is too large for ‘long’ type" on PowerMac 2016-09-07 12:29:29 -04:00
Jeffrey Walton 416605c311 Add additional KEYLENGTH and DEFAULT_KEYLENGTH tests 2016-09-07 10:10:27 -04:00
Jeffrey Walton f0e7b45bcb Remove comma operator from return values for StaticGetDefaultRounds and StaticGetValidKeyLength in non-constexpr builds (Issue 255) 2016-09-07 09:32:06 -04:00
Jeffrey Walton 13037d8e64 Merge 'master' into 'hmqv' 2016-09-07 01:29:22 -04:00
Jeffrey Walton c45c854da0 Merge 'master' into 'constexpr' 2016-09-07 01:29:18 -04:00
Jeffrey Walton e91c85e84d Add tests for word64 and word128 Allocate, Concatenate, Append, FixedSizeAllocator Grow and Overflow. Add test for HuffmanEncoder::GenerateCodeLengths 2016-09-07 01:29:08 -04:00
Jeffrey Walton cdf659a277 Const-ify input, ky and iv 2016-09-06 23:04:42 -04:00
Jeffrey Walton 622e958098 Cleared "declaration hides other declaration" under VS2015 2016-09-06 22:57:46 -04:00
Jeffrey Walton edf7bd8fa6 Add StaticGetValidKeyLength tests for MARS, RC5 and RC6 block ciphers (Issue 252) 2016-09-05 13:08:15 -04:00
Jeffrey Walton 022c33a172 Add StaticGetValidKeyLength tests for block ciphers (Issue 252) 2016-09-05 11:35:00 -04:00
Jeffrey Walton 88bc98fa25 Modify "Algorithm key lengths" output format 2016-09-05 09:37:51 -04:00
Jeffrey Walton 5057991a31 Add StaticGetValidKeyLength tests for RijndaelEncryption, RijndaelDecryption, TwofishEncryption and TwofishDecryption 2016-09-05 09:10:12 -04:00
Jeffrey Walton 6f4bcfd88f Merge branch 'master' into hmqv 2016-08-21 15:10:58 -04:00
Jeffrey Walton 898d6a3f78 Fix compile under VS2012 X86 2016-08-21 04:36:32 -04:00
Jeffrey Walton 1e7c837442 Add test for Huffman codes (Issue 242) 2016-08-21 03:18:26 -04:00
Jeffrey Walton 11c723e1b9 Merge branch 'master' into hmqv 2016-07-24 20:43:25 -04:00
Jeffrey Walton f0f0408c89 Add polynomial multiply instruction detection 2016-07-24 09:48:28 -04:00
Mouse c6c0bdeebe Revert "Add HMQV implementation (and merge the old FHMQV into the new codebase)"
This reverts commit ec35099589.
2016-07-06 12:15:47 -04:00
Mouse 5bdabb7a68 Add HMQV and merge untracked FHMQV 2016-07-04 13:05:38 -04:00
Uri Blumenthal ec35099589 Add HMQV implementation (and merge the old FHMQV into the new codebase) 2016-07-01 14:30:43 -04:00
Jeffrey Walton 36aeb16171 Cleared "warning: unused variable ‘hasPadlockRNG’". Whitespace cleanup 2016-06-16 01:15:07 -04:00
Jeffrey Walton 77e4bd7a7b Cleared warning 'Warning: key hides CryptoPP::FixedRoundsCipherFactory::key' 2016-06-09 00:15:02 -04:00
Jeffrey Walton 5d9607613a Fix hasSSE3/hasSSE4 transposiion. Remove Padlock reporting 2016-06-05 17:23:21 -04:00
Jeffrey Walton c3d61ef78a Fix AMD RDRAND detection. Add VIA Padlock extension detection 2016-05-19 08:32:51 -04:00
Jeffrey Walton 2a163e0b14 Add test for AES, SHA1 and SHA2 from ARM Crypto extension from arm-neon branch 2016-05-19 04:45:35 -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 bf22c4575b Add CRC-32C using CXX and SSE4 (Issue 160) 2016-04-24 13:24:45 -04:00
Jeffrey Walton 87d81372a9 Quiet deprecated warning on some library source files. The warning is intended to help users, not the library 2016-04-24 01:51:39 -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 63cd55901c Added BLAKE2 self tests 2016-04-18 02:39:10 -04:00
Jeffrey Walton a11c9e7574 Add SSE4.1 and SSE4.2 feature detection 2016-04-15 16:23:04 -04:00
Jeffrey Walton 73fd1ac80e Fix NO_OS_DEPENDENCE detection, thanks to jcnarlo (Issue 141) 2016-03-04 11:34:17 -05:00
Jeffrey Walton 2a648d1052 Fixed RDSEED self test failure under i686 2016-01-31 22:19:06 -05:00
Jeffrey Walton 227e4b5fe2 Cleared Coverity finding STREAM_FORMAT_STATE 2016-01-25 16:44:30 -05:00
Jeffrey Walton 6cdb141c5a Cleared -Wcast-align (Issue 122) 2016-01-25 11:37:22 -05:00
Jeffrey Walton 0c1f7d30ea Added additional tests 2016-01-03 12:53:46 -05:00
Jeffrey Walton 81482d8348 Added test case for growing FixedSizeSecBlock. Fixed copy count during grow 2015-12-31 07:21:23 -05:00
Jeffrey Walton 5849767735 Added test for a zeroized SecBlock 2015-12-31 05:08:19 -05:00
Jeffrey Walton 4f57c8f303 Updated documentation. Added calls to unused functions for coverage analytcs. Squashed unused variable warning 2015-12-31 04:42:21 -05:00
Jeffrey Walton 51d674c7d8 Finally figured how how to clear than damn Coverity finding on STREAM_FORMAT_STATE 2015-12-29 07:16:44 -05:00
Jeffrey Walton 13748582e5 Added "make coverage" recipe. Added additional SecBlock tests 2015-12-28 07:06:50 -05:00
Jeffrey Walton 605744d826 Fixed SecBlock append when "this == t", fixed assert, added validation test (Issue 92) 2015-12-28 00:11:52 -05:00
Jeffrey Walton a0b078543a Added CRYPTOPP_DATA_DIR patch (Issue 82) 2015-12-25 23:50:28 -05:00
Jeffrey Walton 0059f486ad Changed RDSEED to use alternate ctor. Added comments about number of retries for RDRAND and RDSEED 2015-12-02 18:23:10 -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 5f70a7c85e Added missing <rng.h> to validat1.cpp. MaurerRandomnessTest requires the header when -DNO_OS_DEPENDENCE 2015-11-19 17:28:37 -05:00
Jeffrey Walton b3e49d8c96 Additional documentation; fixed issues with Clang integrated assembler and different versions numbers for LLVM Clang and Apple Clang; fixed missing header in DSA class 2015-11-19 13:09:33 -05:00
Jeffrey Walton 3203d7db54 Change __MINGW__ → __MINGW32__ 2015-11-18 15:52:54 -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 5a35640912 Added validat0.cpp and moved bit tests into it. Provided tests for SafeConvert. Removed "using namespace std" from test sources (auto_ptr causes a collision becuase std:: provides it in C++03, but CryptoPP:: provides it in C++11 2015-07-30 10:36:49 -04:00
Jeffrey Walton 978b7149f2 Removed USING_NAMESPACE(std). Switch cout and friends to use std::cout 2015-07-29 23:12:44 -04:00
Jeffrey Walton ef318d5423 Fixed compiler errors on Apple due to cross product of {C++03,C++11} x {libc++, libstdc++}. It included bringing in the correct <memory> in <stdcpp.h>, and then only including <stdcpp.h> when <memory> was needed. 2015-07-27 16:01:55 -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 417994ca6a Cleared signed/unsigned warnings under Visual Studio. 2015-07-20 01:15:35 -04:00
Jeffrey Walton 11eb9957d4 HasISSE -> HasSSE. That's how old this function is... 2015-07-19 13:33:41 -04:00
Jeffrey Walton 8f59d9af35 Cleared unused variable and function warnings 2015-07-19 10:22:16 -04:00
Jeffrey Walton b54e637896 Whitespace checkin 2015-07-19 07:21:42 -04:00
Jeffrey Walton 1026b51922 Changed TestOS_RNG to use a MeterFilter rather than an ArraySink with a NULL array. The NULL array meant ArraySink::Put2 returned early, and it did *not* update m_total. Even if Put2 did not exit early, it still could not update m_total because the bytes were *not* processed. This change was required in preparation for clearing UBsan errors in filters.cpp 2015-07-19 07:15:06 -04:00
Jeffrey Walton 6556d68543 Added test suites for HKDF 2015-07-09 01:38:05 -04:00
Jeffrey Walton 8393eeb409 Static and constness to arrays 2015-07-05 19:23:18 -04:00
Jeffrey Walton b51c3ea0b5 Modified validation suite to use VerifyBufsEqual rather than memcmp. VerifyBufsEqual is a constant time compare, so it serves to educate users on the function to call to use 2015-06-28 23:06:12 -04:00
Jeffrey Walton 3e2b437172 Added missing include. Caused compile failure on Android or iOS 2015-06-08 07:36:57 -04:00
Jeffrey Walton e58faf4973 Cleared signed/unsigned warning 2015-06-08 04:14:30 -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 0403d122e1 fix compile on Sun CC
fix compile for non-x86 CPUs
2010-07-28 23:45:28 +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 46832de97a add AESNI and CLMUL detection 2010-07-07 22:46:18 +00:00
weidai 1315a7bc9a port to Sun Studio 12u1 Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21
change makefile to compile for both i386 and x86_64 on Darwin/Mac OS X
2010-07-05 01:15:14 +00:00
weidai f6259a01d3 use test vector file for SHA tests 2010-06-29 01:13:31 +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 1b88e58600 from Jeffery Walton: move *.dat files into TestData, make Integer operator<< respect ios::uppercase flag 2009-03-12 01:55:02 +00:00
weidai 8565900724 tweaks/fixes for 5.6 2009-03-03 03:28:39 +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 7a6d06eee0 fix gcc compile errors and warnings 2007-08-14 00:55:43 +00:00
weidai ae88c18bf7 fixed Whirlpool crash on Pentium 2 machines 2007-08-13 23:53:09 +00:00
weidai b9e10208c6 add debug printout 2007-05-05 01:03:16 +00:00
weidai 240a14e561 add word128 2007-05-04 15:25:08 +00:00
weidai deb3228e83 move ARC4 into Weak namespace 2007-04-16 21:27:41 +00:00
weidai ffd84849eb remove HAVAL, MD5MAC, XMACC. add Sosemanuk 2007-04-16 00:37:44 +00:00
weidai 43b41c1042 update version number, port to Sun C++ 5.8 2006-12-18 02:34:33 +00:00
weidai 28c392e082 add Salsa20 cipher 2006-12-09 17:18:13 +00:00
weidai 9cd298bc8b fix compile on MSVC 6 2005-07-13 02:18:34 +00:00
weidai 1db8ea5084 port to MSVC .NET 2005 beta 2 2005-07-12 04:23:32 +00:00
weidai d0fef7ae9c fix ONE_AND_ZEROS_PADDING test vector 2004-02-10 13:43:46 +00:00
weidai 57109b3120 fix bugs in 64-bit CPU support 2003-07-25 00:15:52 +00:00
weidai 5307588c57 remove Diamond2, code size reductions 2003-07-19 03:47:20 +00:00
weidai 5b2008101c misc changes 2003-07-18 04:35:30 +00:00
weidai d52b49c51f fix bug in Grouper
add RIPEMD-???, Whirlpool, Shacal2, Camellia, Two-Track MAC (Kevin Springle)
change ChannelSwitch to allow non-blocking input (denis bider)
change Redirector to allow more options (denis bider)
fix MaurerRandomnessTest
optimize MD2 (Kevin Springle)
2003-04-15 00:38:48 +00:00
weidai b4f6ef8e16 fix bugs in SEAL and Panama 2003-03-26 21:50:44 +00:00
weidai 6698a18606 fix warnings for VC7 and GCC 2003-03-20 20:39:59 +00:00
weidai 538de80a91 various changes for 5.1 2003-03-20 01:24:12 +00:00
weidai deea52fd3b bug fixes and KAT for X9.17 RNG 2002-10-17 16:32:28 +00:00
weidai 1e45c2d305 compatibility fixes for MacOS X 2002-10-04 21:45:04 +00:00
weidai a3b6ece7ab Initial revision 2002-10-04 17:31:41 +00:00