summaryrefslogtreecommitdiff
path: root/datatest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use ConstBytePtr in TestDataNameValuePairs (GH #827)Jeffrey Walton2019-04-291-1/+1
|
* Prepare for Crypto++ 8.2 releaseJeffrey Walton2019-04-281-25/+8
| | | | Fix SHAKE-128 and SHAKE-256 tests
* Prepare for Crypto++ 8.2 releaseJeffrey Walton2019-04-281-13/+31
| | | | Fix VS2010 compile on WIndows Vista; Add BytePtr inline function
* Add ChaChaTLS implementation (GH #265)Jeffrey Walton2019-01-241-1/+1
| | | | We tweaked ChaCha to arrive at the IETF's implementation specified by RFC 7539. We are not sure how to handle block counter wrap. At the moment the caller is responsible for managing it. We were not able to find a reference implementation so we disable SIMD implementations like SSE, AVX, NEON and Power4. We need the wide block tests for corner cases to ensure our implementation is correct.
* Add search for test vectors and test data (GH #760)Jeffrey Walton2018-12-071-7/+1
|
* Make TrimComment call TrimSpaceJeffrey Walton2018-11-111-13/+12
|
* Add meaningful test failure messagesJeffrey Walton2018-11-051-12/+22
|
* Improve datatest parserJeffrey Walton2018-11-051-59/+80
| | | | This switches to line oriented parsing for the test files. Previously we we using streams for names, and lines for values. We can now use whitespace and make the tests a bit more readable by grouping similar tests. AlgorithmType will clear the current accumlated values.
* Fix missing errno on PPC64 with GCC 4.8.5Jeffrey Walton2018-11-041-0/+1
|
* Add ability to Seek64 in test framework (GH #732)Jeffrey Walton2018-11-041-4/+29
| | | | Also see https://github.com/randombit/botan/pull/1728
* Make datatest.cpp more tolerant of commentsJeffrey Walton2018-10-231-9/+21
|
* Add assert to RunTestDataFileJeffrey Walton2018-07-291-0/+5
|
* Cleanup datatest.cppJeffrey Walton2018-07-101-19/+7
| | | | Switch to non-blocking rngs for Linux and Windows
* Clear conversion warningJeffrey Walton2018-07-101-1/+3
|
* Add RandomizedTransfer overloadJeffrey Walton2018-07-101-5/+19
|
* Increase use of ptrdiff_t when performing pointer mathJeffrey Walton2018-07-091-2/+8
| | | | | | Increase use of ptrdiff_t when performing pointer math Reduce AlgorithmProvider overrides Fix CPU_ProbeARMv7 on Aarch64
* Use C++ style casts and take addr of elem 0 for non-const pointersJeffrey Walton2018-07-091-26/+43
|
* Add KeyDerivationFunction interface (GH #610, PR #611)Jeffrey Walton2018-03-291-39/+35
|
* Add extraneous calls for code coverageJeffrey Walton2018-03-271-12/+34
|
* Change case of FAILED message in datatest.cppJeffrey Walton2018-02-191-1/+1
| | | | Throughout the library the message "FAILED" (not "failed") is used to signal failures. It makes it easy to grep for them. This change makes the message consistent.
* Remove variable block size in datatest.cpp (GH #535)Jeffrey Walton2018-02-181-4/+1
|
* Re-enable Salsa20 ASM (GH #543)Jeffrey Walton2017-11-291-16/+3
| | | | We are fairly certain this is a false positive due to glibc's __memcmp_sse4_1.
* Revert AltiVec and Power8 commitsJeffrey Walton2017-09-051-53/+23
| | | | | 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
* Use aligned buffer for datatest.cppJeffrey Walton2017-09-041-23/+53
|
* Revert "Revert "Clear Visual Studio warnings (Issue 412)""Jeffrey Walton2017-06-021-2/+2
| | | | This reverts commit c3871aec948013c1a4d5613050c659520f59e2e4.
* Revert "Clear Visual Studio warnings (Issue 412)"Jeffrey Walton2017-06-021-2/+2
| | | | This reverts commit eb3b27a6a543. 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.
* Clear Visual Studio warnings (Issue 412)Jeffrey Walton2017-05-301-2/+2
|
* Add support for word32 and word64 parsingJeffrey Walton2017-05-151-9/+25
|
* Switch conversion switch from 'ce' to 'cvt'Jeffrey Walton2017-05-151-4/+5
| | | | There were some collisions in the RSA test vectors
* Fix substring lengthJeffrey Walton2017-05-151-1/+1
|
* Fix PutDecodedDatumInto on OS XJeffrey Walton2017-05-151-1/+1
|
* Re-enable the Tweak on ThreefishJeffrey Walton2017-05-151-8/+24
| | | | We also add a helper to PutDecodedDatumInto which reverses the little-endian values from the Threefish test vectors. Test vectors will follow at next check-in.
* Add Threefish block cipher (Issue 422)Jeffrey Walton2017-05-141-2/+2
|
* Don't latch BlockSize or BlockPaddingScheme across testsJeffrey Walton2017-05-141-0/+8
|
* Rearrange characters in whitespace stringJeffrey Walton2017-05-141-8/+7
| | | | The arrangement saves about 1.3 seconds when running the test vectors. It looks like the tab character is dominant, so we profit by listing it first.
* Explicitly add space on line continuationJeffrey Walton2017-05-141-24/+14
| | | | Formatting of data for a failed self test was still off a bit. It was due to retaining a whitespace character from the test vector file. The problem was, the whitespace was a tab on occasion.
* Fix GetField for stray CR or LFJeffrey Walton2017-05-121-14/+46
| | | | The test vector rsa_pkcs1_1_5.txt is the torture test. We calculated an incorrect index when a line continuation was part of a comment
* Remove VC++ 6.0 workaround in datatest.cppJeffrey Walton2017-05-121-4/+4
|
* Add comment concerning empty valueJeffrey Walton2017-05-121-1/+2
|
* Add early continuation for parsing a continued lineJeffrey Walton2017-05-121-3/+9
|
* Fix parser break on OS XJeffrey Walton2017-05-121-51/+20
| | | | | This was introduced at Commit e456cd2275bba020, and affected Uri during his rounds of testing. We also took the opportunity to write it in modern C++ (and remove the VC++ 6.0 bug workaround)
* Switch to _MSC_FULL_VER for SP1 releasesJeffrey Walton2017-05-111-1/+1
|
* Modify datatest parse to eat whitespace when line continuation is in effectJeffrey Walton2017-05-101-1/+12
| | | | | | | | | | | 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
* Make datatest.cpp aware of padding schemesJeffrey Walton2017-05-101-4/+13
| | | | This change was needed for Kalyna and its CBC test vectors. One test uses OneAndZeros padding
* Remove EncryptBlockCipherJeffrey Walton2017-05-101-4/+3
| | | | The test mode EncryptBlockCipher is not needed. datatest.cpp is versatile enough to handle variable block sizes under test mode Encrypt
* Add Kalyna block cipher (Issue 411)Jeffrey Walton2017-05-061-1/+1
| | | | Thanks to Roman Oliynykov and Oleksandr Kazymyrov for their assistance. Thanks to Keru Kuro for the reference implementation.
* Add variable block size support to test and benchmarksJeffrey Walton2017-05-041-11/+15
| | | | CRYPTOPP_COVERAGE was added at 9614307ab7f4a4a4 to increase code coverage support. This commit enables additional validation routines when CRYPTOPP_COVERAGE is in effect.
* Add C++ nullptr support (Issue 383)Jeffrey Walton2017-03-011-5/+5
|
* Add Test namespace within CryptoPP namespace (Issue 379)Jeffrey Walton2017-02-211-36/+39
|
* Remove old VerifierFilter, switch to SignatureVerificationFilterJeffrey Walton2017-02-071-2/+2
| | | | | VerifierFilter was a typedef for SignatureVerificationFilter. The name changed at Crypto++ 5.0 Updated documentation