Commit Graph

61 Commits

Author SHA1 Message Date
Jeffrey Walton
28fe1a6a4d
Split validat*.cpp source files
Also see https://groups.google.com/forum/#\!topic/cryptopp-users/j_aQj6r-PoI
2018-07-28 14:57:12 -04:00
Jeffrey Walton
3b8bc690bb
Add additional self tests 2018-03-27 00:33:27 -04:00
Jeffrey Walton
36bde8eab5
Switch to <nbtheory.h> functions 2018-03-26 23:49:04 -04:00
Jeffrey Walton
a665e0825f
Use '*this >= m' for InverseMod reduction
The previous test used '*this > m', which did not capture 'm'
2018-03-26 13:31:18 -04:00
Jeffrey Walton
302d210ceb
Add additional Integer class tests 2018-03-26 13:02:55 -04:00
Jeffrey Walton
dd74bc93a4
Add additional Integer class tests 2018-03-25 19:53:26 -04:00
Jeffrey Walton
1efa1a9fc7
Add additional Integer class tests 2018-03-25 18:28:56 -04:00
Jeffrey Walton
b096401b7c
Add additional Integer class tests 2018-03-25 16:44:51 -04:00
Jeffrey Walton
2f61c159b0
Add additional Integer class tests 2018-03-25 14:12:51 -04:00
Jeffrey Walton
34be01231c
Fix conversion warnings under MSC 2018-03-25 02:47:38 -04:00
Jeffrey Walton
a8d40ee07f
Add additional InverseMod tests
This commit adds tests using 'word' moduli
2018-03-25 01:57:12 -04:00
Jeffrey Walton
eb0d040786
Move some tests from TestIntegerBitops to TestIntegerOps (GH #602) 2018-03-25 00:58:11 -04:00
Jeffrey Walton
ff82b5a886
Fix incorrect InverseMod (GH #602) (#603) 2018-03-25 00:43:21 -04:00
Jeffrey Walton
37e02f9e0e
Revert AltiVec and Power8 commits
The strategy of "cleanup under-aligned buffers" is not scaling well. Corner cases are still turing up. The library has some corner-case breaks, like old 32-bit Intels. And it still has not solved the AltiVec and Power8 alignment problems.
For now we are backing out the changes and investigating other strategies
2017-09-05 16:28:00 -04:00
Jeffrey Walton
e7974c7915
Fix unaligned data in self test
AltiVec and Power8 are brutal. The SIMD units just mask-off the lower 3 address bits. They make the buffer aligned whethere it is aligned or not
2017-09-03 11:17:57 -04:00
Jeffrey Walton
659b47108a
Fix Address Sanitizer findings on GCC117
GCC117 is a Aarch64/ARM64 server with AMD's ARM chip and GCC 7.10. It looks like GCC is performing some std::string optimizations that generates a finding. We did not witness the finding on other platforms, like other Aarch64 devices and x86_64.

We will need to check if taking the address of element-0 is still approved way to get the non-const pointer to the elements
2017-08-15 03:11:03 -04:00
Jeffrey Walton
cebeedfefd
Fix Address Sanitizer findings on GCC117
GCC117 is a Aarch64/ARM64 server powered by AMD's ARM chip. It runs GCC 7.10. It looks like GCC is performing some std::string optimizations that generates a finding. We have not witnessed the finding on other platforms
2017-08-15 01:15:08 -04:00
Jeffrey Walton
49515c3a73
Whitespace check-in 2017-08-02 04:59:42 -04:00
Jeffrey Walton
9b9b9994c2
Increase minimum size for DefaultEncryptor test. Decrease minimum size fir Inflator tests 2017-08-01 23:23:51 -04:00
Jeffrey Walton
7ac77ca9ac Revert "Revert "Clear Visual Studio warnings (Issue 412)""
This reverts commit c3871aec94.
2017-06-02 05:18:52 -04:00
Jeffrey Walton
c3871aec94 Revert "Clear Visual Studio warnings (Issue 412)"
This reverts commit eb3b27a6a5. The change broke GCC 4.8 and unknown version of Clang on OS X. UB reported the OS X break, and JW found duplicated the break on a ARM CubieTruck with GCC 4.8.
2017-06-02 05:06:56 -04:00
Jeffrey Walton
eb3b27a6a5
Clear Visual Studio warnings (Issue 412) 2017-05-30 16:37:41 -04:00
Jeffrey Walton
ae3922dda0
Remove calls to cout.flush() for AppVeyor
They seemed to produce a hang when running self tests in AppVeyor.
Also use IsDebuggerPresent() to determine when we should call DebugBreak(). The OS killed our debug build when fuzzing caused an assert to fail
2017-05-29 00:43:20 -04:00
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