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
308336c4e1
Switch to COUNTOF in validat3.cpp
2017-05-11 11:18:52 -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
b40d4d9180
Add CRYPTOPP_COVERAGE for Asan and UBsan builds
2017-05-11 01:35:32 -04:00
Jeffrey Walton
b3f5bae3b9
Merge pull request #417 from c0ff/master
...
NULLPTR fix for blake2 tests
2017-05-11 00:46:56 -04:00
Dmitry S. Baikov
a9b06b40e7
fixed type casts in blake2 tests
2017-05-11 07:39:51 +03:00
Dmitry S. Baikov
39abbbb070
NULLPTR fix for blake2 tests
2017-05-11 07:14:37 +03:00
Jeffrey Walton
e1b9582a4a
Merge pull request #416 from c0ff/master
...
Fixed non-keyed blake2x hashes when using non-standard digest sizes
2017-05-11 00:10:14 -04:00
Dmitry S. Baikov
369fa3bc52
NULLPTR fix for blake2
2017-05-11 07:04:51 +03:00
Dmitry S. Baikov
e8e0b1c3f2
blake2: Fixed initialization when using non-keyed constructor with non-standard digest size. Added test vectors.
...
https://github.com/weidai11/cryptopp/issues/415
Test vectors generated with pyblake2 which uses 'BLAKE2 reference source code package' by Samuel Neves
2017-05-11 06:46:56 +03:00
Jeffrey Walton
702dae7db9
Fix Mersenne output on big-endian machines
2017-05-10 21:00:53 -04:00
Jeffrey Walton
2a20d09dc6
Additional self tests for Decompressors
2017-05-10 20:32:50 -04:00
Jeffrey Walton
07dbcc3d96
Add Inflator::BadDistanceErr exception (Issue 414)
...
The improved validation and excpetion clears the Address Sanitizer and Undefined Behavior Sanitizer findings
2017-05-10 18:17:12 -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
d236cf1277
Add Kalyna CBC test vectors
2017-05-10 15:27:57 -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
3bee1f57cf
XOR block in specialized ProcessBlock
...
Use Put and Get blocks consistently
2017-05-10 06:34:22 -04:00
Jeffrey Walton
20c3d556c3
Revert "XOR block in specialized ProcessBlock"
...
This reverts commit 76bb4ead40
. The Visual Studio project files and other test files were not supposed to be checked-in.
2017-05-10 06:30:08 -04:00
Jeffrey Walton
76bb4ead40
XOR block in specialized ProcessBlock
...
Use Put and Get blocks consistently
2017-05-10 06:26:29 -04:00
Jeffrey Walton
9b383e8a07
Clear out-of-bounds read when fuzzing
...
zinflate.cpp:553:41: runtime error: index 30 out of bounds for type 'unsigned int [30]'
zinflate.cpp:553:11: runtime error: load of address 0x0000011806b8 with insufficient space for an object of type 'const unsigned int'
zinflate.cpp:32:32: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'
2017-05-10 04:15:42 -04:00
Jeffrey Walton
093499260e
Fix compile error with NO_OS_DEPENDENCE
2017-05-10 03:50:32 -04:00
Jeffrey Walton
151ec518e8
Add additional tests
2017-05-10 01:28:52 -04:00
Jeffrey Walton
4904a951ce
Fix bad code generation with GCC, -Os and rdseed
2017-05-10 01:28:25 -04:00
Jeffrey Walton
5c42ec96f2
Fix bad GCC code generation with -Os
...
It appears GCC was doing something wonky with the call to RDSEED. The test script was experiencing a hang
2017-05-09 22:47:14 -04:00
Jeffrey Walton
0cbaea0428
Add tests for Information Dispersal and Secret Sharing
2017-05-09 18:44:45 -04:00
Jeffrey Walton
35ec7b105e
Enable MD4 testing under extended validations
2017-05-09 16:40:02 -04:00
Jeffrey Walton
33235f88db
Removed unneeded guard
...
Whitespace check-in
2017-05-09 16:23:30 -04:00
Jeffrey Walton
3b4a9e2ccf
Update padding check logic
2017-05-09 15:48:52 -04:00
Jeffrey Walton
f817fc7c2e
Clear C4100 warning (Issue 412)
2017-05-09 15:40:49 -04:00
Jeffrey Walton
a0832a63be
Whitespace check-in
2017-05-09 15:28:42 -04:00
Jeffrey Walton
bc29f1b5b8
Updated documentation
2017-05-09 15:13:11 -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
8a177c58e6
Add validation for W3C_PADDING InitializeDerivedAndReturnNewSizes
...
This should have occurred with PR 368 or Commit 8e088b4865
2017-05-09 00:58:42 -04:00
Jeffrey Walton
6ca68e714b
Updated documentation
2017-05-08 23:25:39 -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
7421bd2055
Fix "Load of address X with insufficient space for an object of type const word32"
2017-05-08 16:17:17 -04:00
Jeffrey Walton
fe2d5752cd
Switch to library's GetUserKey
2017-05-08 14:32:30 -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
238b5e6188
Whitespace check-in
2017-05-08 03:20:23 -04:00
Jeffrey Walton
1d7dfc6927
Port Kalyna to big-endian (Issue 411)
...
Tested on GCC110 from the GCC compile farm. Performance is comparable to AES on GCC110.
2017-05-08 01:59:37 -04:00
Jeffrey Walton
c35e616cbf
Make make_odd_key_NNN a template function
2017-05-06 23:59:17 -04:00
Jeffrey Walton
c62e1ade6e
Add Makefile recipe for Valgrind builds
2017-05-06 22:54:49 -04:00