summaryrefslogtreecommitdiff
path: root/validate.h
Commit message (Collapse)AuthorAgeFilesLines
* Add SIMON and SPECK to validation suiteJeffrey Walton2018-10-141-0/+2
|
* Make TestStringSink a debug testJeffrey Walton2018-09-081-1/+2
|
* Add VectorSinkorangefour2018-09-051-0/+1
|
* Add VectorLoad and VectorStore test codeJeffrey Walton2018-08-061-0/+3
| | | | Applies to POWER4 and above only
* Remove Coverity worakaround StreamStateJeffrey Walton2018-07-291-27/+0
| | | | Use std::ostringstream instead. Eventually I'd like to see the output stream passed into the function of interest. It will avoid problems on some mobile OSes that don't have standard inputs and outputs.
* Refactor validat5.cpp and validat6.cppJeffrey Walton2018-07-291-24/+54
| | | | Also see https://groups.google.com/forum/#\!topic/cryptopp-users/j_aQj6r-PoI
* Split validat*.cpp source filesJeffrey Walton2018-07-281-1/+4
| | | | Also see https://groups.google.com/forum/#\!topic/cryptopp-users/j_aQj6r-PoI
* Add HC-256 stream cipher (GH #680)Jeffrey Walton2018-07-051-0/+1
|
* Add HC-128 stream cipher (GH #679)Jeffrey Walton2018-07-051-1/+4
|
* Add Rabbit stream cipher (GH #678)Jeffrey Walton2018-07-041-0/+1
|
* Add additional SIMECK tests (GH #675)Jeffrey Walton2018-06-301-0/+1
|
* Add HIGHT lightweight block cipher (GH #672)Jeffrey Walton2018-06-241-0/+1
|
* Add CHAM lightweight block cipher (PR #670)Jeffrey Walton2018-06-171-0/+1
| | | Add CHAM lightweight block cipher
* Add LEA lightweight block cipher (GH #669)Jeffrey Walton2018-06-171-0/+1
|
* Add scrypt key derivation function (GH #613, PR #626)Jeffrey Walton2018-03-311-0/+1
|
* Fix incorrect InverseMod (GH #602) (#603)Jeffrey Walton2018-03-251-1/+3
|
* Add interface to TweetNaCl library (#566)Jeffrey Walton2018-01-171-0/+2
| | | | | | | | | | | | | TweetNaCl is a compact reimplementation of the NaCl library by Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen, Tanja Lange, Peter Schwabe and Sjaak Smetsers. The library is less than 20 KB in size and provides 25 of the NaCl library functions. The compact library uses curve25519, XSalsa20, Poly1305 and SHA-512 as default primitives, and includes both x25519 key exchange and ed25519 signatures. The complete list of functions can be found in TweetNaCl: A crypto library in 100 tweets (20140917), Table 1, page 5. Crypto++ retained the function names and signatures but switched to data types provided by <stdint.h> to promote interoperability with Crypto++ and avoid size problems on platforms like Cygwin. For example, NaCl typdef'd u64 as an unsigned long long, but Cygwin, MinGW and MSYS are LP64 systems (not LLP64 systems). In addition, Crypto++ was missing NaCl's signed 64-bit integer i64. Crypto++ enforces the 0-key restriction due to small points. The TweetNaCl library allowed the 0-keys to small points. Also see RFC 7748, Elliptic Curves for Security, Section 6. TweetNaCl is well written but not well optimized. It runs 2x to 3x slower than optimized routines from libsodium. However, the library is still 2x to 4x faster than the algorithms NaCl was designed to replace. The Crypto++ wrapper for TweetNaCl requires OS features. That is, NO_OS_DEPENDENCE cannot be defined. It is due to TweetNaCl's internal function randombytes. Crypto++ used DefaultAutoSeededRNG within randombytes, so OS integration must be enabled. You can use another generator like RDRAND to avoid the restriction.
* add self test for custom Encoder and Decoder alphabet (GH #562)Jeffrey Walton2018-01-121-0/+1
|
* Fix error in bits2octets: should use the base point's bit count, instead of ↵Linmao Song2018-01-101-0/+1
| | | | the hash value's. Also add test case for GetRandom, with original data from RFC6979 (#560)
* Add thorough param to ValidateECGDSAJeffrey Walton2017-11-251-1/+1
|
* Add SM3 hash function (GH #541)Jeffrey Walton2017-11-231-0/+1
|
* Remove unneeded Debug testsJeffrey Walton2017-09-011-2/+0
| | | | These tests are effectively performed in MDC, SEAL and OldRandomPool
* Add VIA Padlock RNGJeffrey Walton2017-08-191-0/+1
|
* Add hash static transform test (Issue 455)Jeffrey Walton2017-08-041-0/+2
|
* Remove calls to cout.flush() for AppVeyorJeffrey Walton2017-05-291-1/+2
| | | | | 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
* Add missing <sstream> headerJeffrey Walton2017-05-201-0/+1
| | | | This failed under C++03 builds. C++11 was OK, so it slipped past the initial smoke tests
* Rework benchmark codeJeffrey Walton2017-05-191-0/+39
| | | | This change moves test selections from test.cpp into bench.cpp. It also allows us finer control over test classes and algorithms
* Build RDRAND for all platofrms (Issue 419, PR 424)Jeffrey Walton2017-05-171-2/+0
| | | | 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.
* Removed MSVC warning suppression for many warnings (Issue 412)Jeffrey Walton2017-05-161-1/+1
| | | | | | | | | | Most of these appear to have been cleared over the last couple of years. C4127 is too prevelant. We are probably going to have to live with it. We may be able to clear C4250 with a using statement. For example 'using ASN1CryptoMaterial::Load'. MSVC resisted clearing C4661 by pushing/poping in iterhash.h and osrng.h. It was like MSVC simply ignored it.
* Fix compile error with NO_OS_DEPENDENCEJeffrey Walton2017-05-101-1/+2
|
* Add additional testsJeffrey Walton2017-05-101-1/+1
|
* Add tests for Information Dispersal and Secret SharingJeffrey Walton2017-05-091-0/+1
|
* Add Makefile recipe for Valgrind buildsJeffrey Walton2017-05-061-1/+1
|
* Fold compressor and default encryptor testsJeffrey Walton2017-05-061-6/+2
|
* Add additional self tests under debug buildsJeffrey Walton2017-05-051-0/+5
|
* Add additional self tests under debug buildsJeffrey Walton2017-05-051-0/+8
|
* Add variable block size support to test and benchmarksJeffrey Walton2017-05-041-1/+1
| | | | CRYPTOPP_COVERAGE was added at 9614307ab7f4a4a4 to increase code coverage support. This commit enables additional validation routines when CRYPTOPP_COVERAGE is in effect.
* Add ARIA block cipherJeffrey Walton2017-04-101-0/+1
| | | | | | This is the reference implementation, test data and test vectors from the ARIA.zip package on the KISA website. The website is located at http://seed.kisa.or.kr/iwt/ko/bbs/EgovReferenceList.do?bbsId=BBSMSTR_000000000002. We have optimized routines that improve Key Setup and Bulk Encryption performance, but they are not being checked-in at the moment. The ARIA team is updating its implementation for contemporary hardware and we would like to use it as a starting point before we wander too far away from the KISA implementation.
* Fix Solaris compile due to StreamStateJeffrey Walton2017-03-241-1/+3
| | | | "validate.h", line 155: Error: Overloading ambiguity between "std::ios::basic_ios(std::streambuf *)" and "std::ios::basic_ios(int)".
* Clear Coverity STREAM_FORMAT_STATE (CID 177736, 177737, 177732)Jeffrey Walton2017-03-181-0/+21
| | | | Yet another attempt to clear the stream state finding.
* Add width field to StreamStateJeffrey Walton2017-03-181-3/+5
|
* Switch to std::ostream::char_type for StreamStateJeffrey Walton2017-03-181-3/+3
|
* Clear Coverity STREAM_FORMAT_STATE (CID 177735)Jeffrey Walton2017-03-181-1/+3
| | | | This was a valid finding in the Test suite. The stream state findings are annoying.
* Add TimeToString function (Issue 386)Jeffrey Walton2017-03-081-9/+35
| | | | This was supposed to be checked-in with ce38a411fc5324a2
* Add Test namespace within CryptoPP namespace (Issue 379)Jeffrey Walton2017-02-211-0/+6
|
* Add NIST SP800-90A HMAC_DRBG generatorJeffrey Walton2017-02-071-1/+4
| | | | | Move bodies out-of-line Whitespace
* Add self tests for RoundUpToMultipleOf (Issue 360)Jeffrey Walton2017-01-101-0/+2
| | | | Thanks to Boldizsár Lipka
* Add NIST SP800-90A Hash_DRBG generatorJeffrey Walton2016-12-301-0/+1
|
* Add test cases for ASN.1 parsing (Issue 346)Jeffrey Walton2016-12-241-2/+7
|
* Add Aumasson and Bernstein's SipHash (Issue 348)Jeffrey Walton2016-12-171-1/+2
|