Commit Graph

38 Commits

Author SHA1 Message Date
Jeffrey Walton
b083390d4f
Added some intelligence to truncated Gzip stream test 2017-05-16 01:59:09 -04:00
Jeffrey Walton
78db20d939
Add FileName, FileTime and Comment to argnames.h
Add self tests to verify handling of filenames, filetimes and comments
2017-05-12 19:52:42 -04:00
Jeffrey Walton
9850576d0b
Improve compressor error messages 2017-05-11 17:59:20 -04:00
Jeffrey Walton
35451f3ab6
Additional self tests for Decompressors 2017-05-11 13:00:17 -04:00
Jeffrey Walton
537ee61ade
Switch to _MSC_FULL_VER for SP1 releases 2017-05-11 12:05:57 -04:00
Jeffrey Walton
aa287d6112
Fix compile under GCC 6.3 on Fedora 2017-05-11 11:55:00 -04:00
Jeffrey Walton
34edf7e12f
Fix subscript out of range in test 2017-05-11 04:14:13 -04:00
Jeffrey Walton
ea5d003a9a
Move TestPolynomialMod2 to validat0.cpp 2017-05-11 03:56:19 -04:00
Jeffrey Walton
c87b0d1485
Fix subscript out of range in test 2017-05-11 02:57:48 -04:00
Jeffrey Walton
598f838e0a
Reduce random string size.
Tests run faster without diminishing returns
2017-05-11 02:13:27 -04:00
Jeffrey Walton
2a20d09dc6
Additional self tests for Decompressors 2017-05-10 20:32:50 -04:00
Jeffrey Walton
151ec518e8
Add additional tests 2017-05-10 01:28:52 -04:00
Jeffrey Walton
0cbaea0428
Add tests for Information Dispersal and Secret Sharing 2017-05-09 18:44:45 -04:00
Jeffrey Walton
4f7fee38d6
Mkaake RDRAND and RDSEED throw if not available
Fix Carmichael pseudo-prime tests
2017-05-09 13:20:53 -04:00
Jeffrey Walton
ffa92b09e6
Add test for Carmichael pseudo-primes 2017-05-08 22:36:58 -04:00
Jeffrey Walton
ba8882db39
Use [31398, 31468] for prime gap test 2017-05-08 17:03:06 -04:00
Jeffrey Walton
7ba33868e0
Add zLib compressor and decompressor tests 2017-05-08 06:08:27 -04:00
Jeffrey Walton
798f1c9ed8
Clear warnings under Visual Studio 2017-05-08 05:13:55 -04:00
Jeffrey Walton
14236ce94b
Fold compressor and default encryptor tests 2017-05-06 19:20:57 -04:00
Jeffrey Walton
3ea8e0655f
Add constants to default encryptor classes 2017-05-06 09:07:24 -04:00
Jeffrey Walton
02df6ea847
Add additional self tests under debug builds 2017-05-05 23:16:28 -04:00
Jeffrey Walton
ac930b084d
Add additional tests
Whitespace check-in
2017-05-05 20:34:43 -04:00
Jeffrey Walton
9225ca09cb
Updated MersenneTwister tests
The tests now include the first 10 elements of the sequence to ensure a properly implemented algorithm and endianess correctness.
2017-05-05 19:00:17 -04:00
Jeffrey Walton
c1377b2955
Add additional self tests under debug builds 2017-05-05 17:21:08 -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
a49cb0861b
Add SecBlock member to track number of elements to zeroize (Issue 346)
By default the member, named m_mark, is set to the maximum number of elements. If SetMark() is called, then m_mark is adjusted. Upon deallocation and zeroization, STDMIN(m_size, m_mark) elements are zeroized.
We wanted to use a high water mark, but we could not track the writes to the allocation. operator[] would have been OK, but ::memcpy would have been problematic
2017-01-28 13:23:50 -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
1fe0cc869b
Cleared conversion warning under MSVC 2016-12-30 15:58:01 -05:00
Jeffrey Walton
7031fc7f6f
Add test cases for ASN.1 parsing (Issue 346) 2016-12-24 04:56:34 -05:00
Jeffrey Walton
26db40567d
Add Integer Bitops tests (Issue 344) 2016-12-06 20:56:57 -05:00
Jeffrey Walton
2fbdeb70b4 Remove unneeded test file 2015-11-05 02:04:59 -05:00
Jeffrey Walton
491e8dbd74 Whitespace checkin 2015-08-03 04:03:23 -04:00
Jeffrey Walton
77206baf56 Whitespace checkin 2015-07-30 13:07:33 -04:00
Jeffrey Walton
e5171450e2 Fixed validation failure due to collision of type sizes between int and long 2015-07-30 10:57:25 -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