Jeffrey Walton
e85b388234
Add thorough param to ValidateECGDSA
2017-11-25 03:27:07 -05:00
Jeffrey Walton
5267723a49
Add SM3 hash function (GH #541 )
2017-11-23 23:19:09 -05:00
Jeffrey Walton
3970a066e3
Add SIMON-64 and SIMON-128 lightweight block ciphers (GH #539 )
2017-11-21 04:58:51 -05:00
Jeffrey Walton
b9fc470bc7
Add SPECK-64 and SPECK-128 lightweight block ciphers (GH #538 )
2017-11-20 06:30:21 -05:00
Jeffrey Walton
69c8a4f9c6
Prefix IS_LITTLE_ENDIAN and IS_BIG_ENDIAN with CRYPTOPP
2017-11-10 14:15:30 -05:00
Jeffrey Walton
7ba8c6bc81
Cleanup Altivec and Power7 code paths
...
This changes the dependency from Altivec to Power7. Internally we needed Power7 but it was cut-in as a pseudo Altivec dependency. Also see http://groups.google.com/forum/#!topic/cryptopp-users/fmEKOG41SG8
2017-10-17 22:50:45 -04:00
Jeffrey Walton
3bd01f73ba
Add Power8 SHA256 and SHA512 support (GH #513 )
2017-09-22 08:58:50 -04:00
Jeffrey Walton
205ebe0871
Add missing newline to IA-32 config output
...
Avoid flushing stream for config line items
Use memcpy in std:: namespace
2017-09-16 01:36:45 -04:00
Jeffrey Walton
fb78afba29
Add PowerPC support to cpu.h and validate.cpp
2017-09-11 03:05:04 -04:00
Jeffrey Walton
b6f79af343
Clear GCC warnings with -Wall -Wextra
2017-09-05 18:03:46 -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
23b939c62b
Clear warnings under GCC with -Wall -Wextra
2017-09-05 12:23:12 -04:00
Jeffrey Walton
14a5221d82
Remove unneeded Debug tests
...
These tests are effectively performed in MDC, SEAL and OldRandomPool
2017-09-01 02:37:41 -04:00
Jeffrey Walton
7851a0d510
Remove BOOL macro value (GH #462 )
...
Currently the CRYPTOPP_BOOL_XXX macros set the macro value to 0 or 1. If we remove setting the 0 value (the #else part of the expression), then the self tests speed up by about 0.3 seconds. I can't explain it, but I have observed it repeatedly.
This check-in prepares for the removal in Upstream master
2017-08-20 21:25:29 -04:00
Jeffrey Walton
3db6f361d2
Fix compile under MSVC
...
(ClCompile target) ->
validat1.cpp(1081): warning C4800: 'CryptoPP::word32' : forcing value to bool
'true' or 'false' (performance warning) [c:\Users\cryptopp\cryptest.vcxproj]
validat1.cpp(1090): warning C4800: 'CryptoPP::word32' : forcing value to bool
'true' or 'false' (performance warning) [c:\Users\cryptopp\cryptest.vcxproj]
validat1.cpp(1099): warning C4800: 'CryptoPP::word32' : forcing value to bool
'true' or 'false' (performance warning) [c:\Users\cryptopp\cryptest.vcxproj]
2017-08-20 07:15:02 -04:00
Jeffrey Walton
88f08afcb0
Add additional VIA RNG tests
...
The are configurations tests as recommended by Cryptography Research, Inc in their 2003 audit report
2017-08-20 07:01:59 -04:00
Jeffrey Walton
7fb5953055
Add VIA Padlock RNG
2017-08-19 15:41:45 -04:00
Jeffrey Walton
adfb30a579
Clear Coverity finding CHECKED_RETURN (CID 182769)
2017-08-18 04:51:50 -04:00
Jeffrey Walton
e2c377effd
Split source files to support Base Implementation + SIMD implementation (GH #461 )
...
Split source files to support Base Implementation + SIMD implementation
2017-08-17 12:33:43 -04:00
Jeffrey Walton
953252e44d
Move from 'static' to 'enum' for class constants
...
Enums don't take up space in class objects. Its should result in smaller objects and faster code
2017-08-11 17:13:15 -04:00
Jeffrey Walton
a2cab93117
Add hash static transform test (Issue 455)
2017-08-04 23:35:38 -04:00
Jeffrey Walton
860a9f4266
Use non-0 seed OldRandomPool test
...
This should tickle endianness issues
2017-08-04 16:57:45 -04:00
Jeffrey Walton
e52be9ae84
Clear declaration hides previous local declaration
2017-08-04 07:28:35 -04:00
Jeffrey Walton
76ff3fc03b
Remove pre-Crypto++ 5.5 interface
...
Users of OldRandomPool must use the new interface. All that means is they must call IncorporateEntropy instead of Put, and GenerateBlock instead of Get
2017-08-02 19:43:56 -04:00
Jeffrey Walton
4da4ece5a5
Cut-in RandomNumberGenerator interface to OldRandPool
...
The existing interface still exists. The new interface is routed into the old methods. Without the new interface, using OldRandPool could result in:
$ ./cryptest.exe v
terminate called after throwing an instance of CryptoPP::NotImplemented
what(): RandomNumberGenerator: IncorporateEntropy not implemented
Aborted (core dumped)
2017-08-02 18:55:10 -04:00
Jeffrey Walton
5fbbc5311c
Add self tests for OldRandomPool
...
We still need to get the test result cross-validated
2017-08-01 18:57:23 -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
9dcb72f9e5
Fix "error LNK2019: unresolved external symbol TestAutoSeededX917()" under Windows Phone
2017-05-18 09:35:09 -04:00
Jeffrey Walton
ddcd70b152
Fix "error C2065: prng undeclared identifier" under Windows Phone
2017-05-18 08:36:00 -04:00
Jeffrey Walton
1b1c32d7cf
Build RDRAND for all platofrms (Issue 419, PR 424)
...
We have not been able to determine a reliable way to detect cpu's and platforms with Cmake. We are side stepping the Cmake problem by building rdrand.cpp all the time. If its not avilable for a cpu or platform, then RDRAND or RDSEED throw an exception.
2017-05-17 16:21:20 -04:00
Jeffrey Walton
32ab4af5ff
Add Threefish to project files
...
Whitespace check-in
2017-05-14 15:27:50 -04:00
Jeffrey Walton
537ee61ade
Switch to _MSC_FULL_VER for SP1 releases
2017-05-11 12:05:57 -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
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
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
a0832a63be
Whitespace check-in
2017-05-09 15:28:42 -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
14236ce94b
Fold compressor and default encryptor tests
2017-05-06 19:20:57 -04:00
Jeffrey Walton
bdd82d781e
Added additional tests
2017-05-06 18:51:55 -04:00
Jeffrey Walton
c04b98072c
Fix compile error with -DNO_OS_DEPENDENCE
...
Whitespace check-in
2017-05-06 18:00:57 -04:00
Jeffrey Walton
374b8a419f
Added additional tests
2017-05-06 11:37:22 -04:00
Jeffrey Walton
02df6ea847
Add additional self tests under debug builds
2017-05-05 23:16:28 -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