Jeffrey Walton
8c34a5f7f5
Add Threefish block cipher (Issue 422)
2017-05-14 13:51:41 -04:00
Jeffrey Walton
7ee87af86b
Don't latch BlockSize or BlockPaddingScheme across tests
2017-05-14 05:26:33 -04:00
Jeffrey Walton
017f7f61b4
Rearrange characters in whitespace string
...
The arrangement saves about 1.3 seconds when running the test vectors. It looks like the tab character is dominant, so we profit by listing it first.
2017-05-14 04:09:26 -04:00
Jeffrey Walton
2c570e27a0
Explicitly add space on line continuation
...
Formatting of data for a failed self test was still off a bit. It was due to retaining a whitespace character from the test vector file. The problem was, the whitespace was a tab on occasion.
2017-05-14 02:41:22 -04:00
Jeffrey Walton
973de7712a
Fix GetField for stray CR or LF
...
The test vector rsa_pkcs1_1_5.txt is the torture test. We calculated an incorrect index when a line continuation was part of a comment
2017-05-12 14:25:25 -04:00
Jeffrey Walton
3f9667f3cd
Remove VC++ 6.0 workaround in datatest.cpp
2017-05-12 03:50:37 -04:00
Jeffrey Walton
b160cb40e1
Add comment concerning empty value
2017-05-12 03:09:06 -04:00
Jeffrey Walton
d3986223a6
Add early continuation for parsing a continued line
2017-05-12 03:05:24 -04:00
Jeffrey Walton
ac6db2fa91
Fix parser break on OS X
...
This was introduced at Commit e456cd2275 , and affected Uri during his rounds of testing.
We also took the opportunity to write it in modern C++ (and remove the VC++ 6.0 bug workaround)
2017-05-12 02:20:44 -04:00
Jeffrey Walton
537ee61ade
Switch to _MSC_FULL_VER for SP1 releases
2017-05-11 12:05:57 -04:00
Jeffrey Walton
e456cd2275
Modify datatest parse to eat whitespace when line continuation is in effect
...
Previously the parsed string would look as follows. You would get this on a failed self test.
Key: 0000000000000000
0000000000000000
0000000000000000
0000000000000000
The new behavior eats the leading whitespace, so the key is reported as:
Key: 0000000000000000000000000000000000000000000000000000000000000000
2017-05-10 16:20:12 -04:00
Jeffrey Walton
b2a6ba460f
Make datatest.cpp aware of padding schemes
...
This change was needed for Kalyna and its CBC test vectors. One test uses OneAndZeros padding
2017-05-10 15:26:36 -04:00
Jeffrey Walton
0de44edde1
Remove EncryptBlockCipher
...
The test mode EncryptBlockCipher is not needed. datatest.cpp is versatile enough to handle variable block sizes under test mode Encrypt
2017-05-10 13:50:36 -04:00
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
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
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
7e42780517
Add Deterministic DSA and ECDSA Signatures (Issue 121)
...
Based on Douglas Roark PR 131
2016-12-11 01:02:00 -05: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
06a7abc9c8
Whitespace cleanup
2016-07-24 19:28:01 -04:00
Jeffrey Walton
9cc0c47f7b
Cut-in determinsitic signature verification during signing
2016-04-10 03:02:02 -04:00
Jeffrey Walton
75555369d9
Prepare for RFC6979, Deterministic Usage of the Digital Signature Algorithm (DSA) and Elliptic Curve Digital Signature Algorithm (ECDSA)
2016-04-09 23:50:33 -04:00
Jeffrey Walton
d64eca8aff
Add SignalUnknownAlgorithmError
2016-04-09 19:32:57 -04:00
Jeffrey Walton
5d84f04ae3
Constify caught exceptions
2016-04-09 19:18:57 -04:00
Jeffrey Walton
6d2bacf9ec
Flus cout buffer in case next test hangs, like BlumBlumShub on some platform/compiler combinations
2016-01-07 18:17:31 -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
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
1e103c0e5b
Completed cutover to unscoped auto_ptr (which will use Crypto++'s namespace version)
2015-08-03 19:11:23 -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
22c3e41133
Removed USING_NAMESPACE(std). Changed cout → std::cout, cerr → std::cerr, ...
2015-07-30 17:35:58 -04:00
Jeffrey Walton
f61577af9d
Included "integer.h" in source files with Integer dependencies so make would rebuild stale object files
2015-07-30 03:30:27 -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
8f59d9af35
Cleared unused variable and function warnings
2015-07-19 10:22:16 -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
87a60d8825
add HMAC/SHA2 test vectors
...
fix cosmetic issues with test suite
2010-08-08 07:29:51 +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
1a1ad9e650
randomize test buffer length and alignment to better detect alignment-related bugs
2010-06-29 01:12:49 +00:00
weidai
dd60e2ff96
fix bug in PutDecodedDatumInto() with STLPort (from trungantran)
2009-06-18 20:08:16 +00:00
weidai
3be02e9a1a
fix EC2N skipping of optional seed, switch to public domain MARS code, deliver vc80.pdb to OutDir
2009-03-28 03:08:27 +00:00
weidai
d6b4e54448
fix compile on MSVC 6
2009-03-13 02:55:23 +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