Commit Graph

149 Commits (cmake)

Author SHA1 Message Date
Jeffrey Walton a5c67cfdd6
Add Kalyna block cipher (Issue 411)
Thanks to Roman Oliynykov and Oleksandr Kazymyrov for their assistance. Thanks to Keru Kuro for the reference implementation.
2017-05-06 00:24:35 -04:00
Jeffrey Walton 5c1de7b5a5
Add variable block size support to test and benchmarks
CRYPTOPP_COVERAGE was added at 9614307ab7 to increase code coverage support. This commit enables additional validation routines when  CRYPTOPP_COVERAGE is in effect.
2017-05-04 19:11:24 -04:00
Jeffrey Walton 2297dd000a
Removed "typedef SHA1 SHA" (Issue 369)
This should have happened when we removed most of MAINTAIN_BACKWARDS_COMPATIBILITY artifacts. Its not practical move SHA1 into Weak:: namespace or "typedef SHA256 SHA" because SHA1 is too intertwined at the moment.

In the interim, maybe we can place SHA1 in both CryptoPP:: and Weak:: namespaces. This will allow us to transition into Weak::SHA1 over time, and signal to users SHA1 should be avoided.
2017-04-24 05:05:14 -04:00
Jeffrey Walton cf160e91c4
Added comments on using InformationDisperseFile and SecretShareFile
This is based on feedback from https://groups.google.com/forum/#\!topic/cryptopp-users/XEKKLCEFH3Y
2017-04-13 23:13:07 -04:00
Jeffrey Walton bf92cb0039
Split regtest.cpp into regtest{1|2|3}.cpp
regtest.cpp is where ciphers register by name. The library has added a number of ciphers over the last couple of years and the source file has experienced bloat. Most of the ARM and MIPS test borads were suffering Out of Memory (OOM) kills as the compiler processed the source fille and the included header files.
This won't stop the OOM kills, but it will help the situation. An early BeagleBoard with 512 MB of RAM is still going to have trouble, but it can be worked around by building with 1 make job as opposed to 2 or 4.
2017-04-13 21:45:21 -04:00
Jeffrey Walton 8ca0f47939
Add ARIA block cipher
This is the reference implementation, test data and test vectors from the ARIA.zip package on the KISA website. The website is located at http://seed.kisa.or.kr/iwt/ko/bbs/EgovReferenceList.do?bbsId=BBSMSTR_000000000002.

We have optimized routines that improve Key Setup and Bulk Encryption performance, but they are not being checked-in at the moment. The ARIA team is updating its implementation for contemporary hardware and we would like to use it as a starting point before we wander too far away from the KISA implementation.
2017-04-10 10:52:40 -04:00
Jeffrey Walton ce38a411fc
Add Random Number Generator benchmarks (Issue 386)
Move HTML header and footer into benchmark functions
Switch to <cmath> and standard math routines
Switch to <ctime> and standard clock and time routines
Move static variable^Cinto anonymous namespace
Add TimeToString function for printing start and end times
2017-03-08 16:59:24 -05:00
Jeffrey Walton 5efb019d8b
Add C++ nullptr support (Issue 383) 2017-03-01 06:10:06 -05:00
Jeffrey Walton 73836e58a5
Add Test namespace within CryptoPP namespace (Issue 379) 2017-02-21 02:03:29 -05:00
Jeffrey Walton 9d7c5fce55
Remove old VerifierFilter, switch to SignatureVerificationFilter
VerifierFilter was a typedef for SignatureVerificationFilter. The name changed at Crypto++ 5.0
Updated documentation
2017-02-07 18:51:44 -05:00
Jeffrey Walton 2868452193
Add NIST SP800-90A HMAC_DRBG generator
Move bodies out-of-line
Whitespace
2017-02-07 08:51:58 -05:00
Jeffrey Walton 81b1a18063
Change file preamble to include "originally written by Wei Dai"
We have made a fair number of changes, and we don't want WD to receive credit for issues he was not part of
2017-01-27 07:05:45 -05:00
Jeffrey Walton 1778432013
Add self tests for RoundUpToMultipleOf (Issue 360)
Thanks to Boldizsár Lipka
2017-01-10 22:09:38 -05:00
Jeffrey Walton 5c932fcc3b
Add NIST SP800-90A Hash_DRBG generator 2016-12-30 21:46:03 -05:00
Jeffrey Walton 7031fc7f6f
Add test cases for ASN.1 parsing (Issue 346) 2016-12-24 04:56:34 -05:00
Jeffrey Walton 9739ba8afe
Add Aumasson and Bernstein's SipHash (Issue 348) 2016-12-17 03:58:36 -05:00
Jeffrey Walton 379e76d27d
Add ECGDSA benchmarks using secp256k1 and sect233r1
Also add missing validation functions to test.cpp. The test and functions were present, but only accessible with 'cryptest.ex v', where all the tests were run
2016-12-13 19:16:21 -05:00
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 7ece03d762
Updated documentation (Issue 345) 2016-12-11 06:44:18 -05:00
Jeffrey Walton acf15c21c0
Update comments 2016-12-04 13:04:12 -05: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 5596f73371
Fix Cygwin Newlib signal handler (Issue 315) 2016-10-14 15:00:49 -04:00
Jeffrey Walton bc5ae1b7c1
Fix port forwarding and EINVAL on Unix 2016-10-10 19:50:45 -04:00
Jeffrey Walton 145a83e4cd
Add test suite RandomNumberGenerator t anonymous namespace 2016-10-10 18:03:31 -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 1dd0b07a1e
Improve OutputDebugString messages (Issue 314) 2016-10-02 18:40:28 -04:00
Jeffrey Walton 578b0e2a07
Add information for expected and load address for FIPS DLL module (Issue 314) 2016-10-02 17:52:08 -04:00
Jeffrey Walton 55bbc55a7e
Report computed MAC (Issue 314) 2016-10-02 16:20:25 -04:00
Jeffrey Walton d5aff4e4f8 Cleared Coverity finding CID 12086 (Issue 299) 2016-09-22 03:08:28 -04:00
Jeffrey Walton c7303a600f Cleared Coverity finding CID 12086 (Issue 299) 2016-09-22 00:11:35 -04:00
Jeffrey Walton 933e63f162 Fix use of template parameter as a condition 2016-09-21 23:04:43 -04:00
Jeffrey Walton 3815b908ab Add ossig.h. Move SignalHandler to ossig.h
This avoids a circular dependency between misc.h and trap.h. It also allows us to logically segregate and group code to replace C++ handlers, like set_terminate
2016-09-17 12:23:02 -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 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 06a7abc9c8 Whitespace cleanup 2016-07-24 19:28:01 -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 a49a95de55 Cleared Visual Studio warning for uninitialized variables 2016-04-28 05:35:14 -04:00
Jeffrey Walton d314162ca8 Removed OCB mode test code 2016-04-28 01:08:38 -04:00
Jeffrey Walton 24d10aa83e Add WIN32_LEAN_AND_MEAN to source files which inlude Windows headers 2016-04-28 01:05:47 -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 3ee10576bb Make test program aware of CRYPTOPP_USE_FIPS_202_SHA3, use alternate all.txt 2016-04-23 23:34:48 -04:00
Jeffrey Walton 63cd55901c Added BLAKE2 self tests 2016-04-18 02:39:10 -04:00
Jeffrey Walton e560bb6ccb Cleared -Wcast-align (Issue 122) 2016-01-25 11:39:47 -05:00
Jeffrey Walton a0b078543a Added CRYPTOPP_DATA_DIR patch (Issue 82) 2015-12-25 23:50:28 -05:00
Jeffrey Walton 298988a5b9 Crypto++ 5.6.3 check-in 2015-11-22 19:17:15 -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 fd300a1c90 Changed to dynamic_cast for GlobalRNG() 2015-08-03 12:48:12 -04:00
Jeffrey Walton d935fd80ba Partial cut-over to static local strings for DefaultChannel() and AadChannel(). Cout-over DEFAULT_CHANNEL and AAD_CHANNEL to use them behind the scenes 2015-07-31 08:23:53 -04:00
Jeffrey Walton 3caada0a9e Switch to static local/accessor pattern to avoid initialization order issues amoung translation units 2015-07-31 03:40:43 -04:00
Jeffrey Walton 22c3e41133 Removed USING_NAMESPACE(std). Changed cout → std::cout, cerr → std::cerr, ... 2015-07-30 17:35:58 -04:00
Jeffrey Walton 4d8ac2db7c Cleared "reference to 'auto_ptr' is ambiguous" error under LLVM's libc++ and C++11 2015-07-30 11:25:24 -04: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 929967a042 Added CRYTPOPP_ASSERT to cryptest program. The mods also show how to install a debug trap handler such that if CRYPTOPP_ASSERT fires, the program continues 2015-07-23 10:48:43 -04:00
Jeffrey Walton 3829c7fd51 Added OMP thread count to test program. Discussion at https://groups.google.com/d/msg/cryptopp-users/M4vy6PFy40s/9n869TXAqoYJ 2015-06-13 21:11:22 -04:00
Jeffrey Walton 15d312e986 Fixed potential missing argument when using tv subcommand with argv[2] 2015-06-12 10:39:55 -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
weidai 393a5eac05 fix usage.dat path 2009-03-13 09:42:06 +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 994090ba9c update version number to 5.5.2 2007-08-13 23:54:25 +00:00
weidai 5834ecc870 add IncorporateEntropy and GenerateIntoBufferedTransformation to RNG interface 2007-05-04 15:38:32 +00:00
weidai 3ef60be9b7 changed hash functions for m command 2007-04-16 00:25:13 +00:00
weidai 54a2acd0aa add V (version) option 2006-12-18 02:15:14 +00:00
weidai 4afd858ae4 port to Borland C++Builder 2006 2006-12-14 11:41:39 +00:00
weidai f05ea58bb3 port to GCC 4, reorganize implementations of SetKey 2006-12-10 02:12:23 +00:00
weidai 28c392e082 add Salsa20 cipher 2006-12-09 17:18:13 +00:00
weidai 3e54a3ec1d fix compile on Unix 2006-09-06 09:04:44 +00:00
weidai 1b6b327200 change DLL integrity self-test to allow DLL to be Authenticode signed 2006-07-30 17:15:01 +00:00
weidai 6aacd0a0de merge in changes by denis bider and fix compile on gcc 3.4.4 and MSVC 6 2006-04-06 21:20:25 +00:00
weidai 922fdeb150 fix MSVC 2005 warnings 2006-03-13 13:26:41 +00:00
weidai 8d54ba7ff2 upgrade project files to MSVC 2005 and add x64 platform 2006-01-30 14:00:54 +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 393ae4859a fix documentation, fix PanamaMAC, fix algorithm names 2004-07-22 00:51:57 +00:00
weidai bdf3852cf0 port to CodeWarrior 8.3 2004-06-20 17:56:15 +00:00
weidai 005b94f755 add b2 command 2003-08-01 03:07:33 +00:00
weidai 259ee22eba split bench.cpp in 2 for alpha (.got subsegment exceeds 64K) 2003-07-29 01:16:22 +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 8cd6a9256d fix for Unix 2003-07-11 20:03:53 +00:00
weidai cadf4f866a fix for Unix 2003-07-11 19:46:28 +00:00
weidai 12157494b2 fix GCC compile 2003-07-11 19:16:35 +00:00
weidai 473e5df89b merge in 5.0.4 changes (exclude DES and SHA-2 from DLL),
attempt (failed) to build DLL with GCC
2003-07-10 04:34:23 +00:00
weidai f278895908 create DLL version, fix GetNextIV() bug in CTR and OFB modes 2003-07-04 00:17:37 +00:00
weidai 8e054b89e7 add missing #include 2003-07-01 21:26:20 +00:00
weidai ace4054444 fixes/workarounds for GCC 2003-06-19 19:09:57 +00:00
weidai 6c4437d03d sync with private branch 2003-06-06 02:34:03 +00:00
weidai de0f05d787 *** empty log message *** 2003-05-15 17:36:53 +00:00
weidai 86f5140826 workaround for GCC 2003-04-26 04:56:38 +00:00
weidai f7e64c2efc changes for VS.NET 2003 2003-04-19 21:50:08 +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 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 a28627a6a5 add script-driven testing 2002-12-06 22:02:46 +00:00
weidai ffb6f9cd3f fix typo 2002-10-11 20:24:02 +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