Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Plug leaks due to not resetting the EVP_CIPHER_CTX | tb | 2022-09-05 | 1 | -1/+11 | |
| | ||||||
* | Two more missing long long casts | tb | 2022-09-05 | 1 | -3/+3 | |
| | ||||||
* | More long long casts for printing time_t | tb | 2022-09-05 | 1 | -3/+3 | |
| | ||||||
* | Convert from %i to %d | tb | 2022-09-05 | 12 | -84/+84 | |
| | ||||||
* | cast time_t to long long before printing for portability | tb | 2022-09-05 | 1 | -2/+2 | |
| | ||||||
* | Ensure a constructed ASN.1 INTEGER is considered invalid when decoding. | jsing | 2022-09-03 | 1 | -1/+15 | |
| | ||||||
* | New test coverage for RC4 | tb | 2022-09-03 | 3 | -227/+453 | |
| | | | | From Joshua Sing | |||||
* | Rewrite RMD-160 tests to be table-driven. | tb | 2022-09-02 | 3 | -130/+203 | |
| | | | | From Joshua Sing | |||||
* | Retire the old crap. Thanks, Joshua | tb | 2022-09-02 | 4 | -269/+0 | |
| | ||||||
* | Unhook the old md4 and md5 tests | tb | 2022-09-02 | 1 | -3/+1 | |
| | ||||||
* | Link new md test to regress. | tb | 2022-09-02 | 1 | -1/+2 | |
| | ||||||
* | New md4/md5 regress tests | tb | 2022-09-02 | 2 | -0/+310 | |
| | | | | | | These exercise MD4 and MD5 with the test vectors from RFCs 1320 and 1321. From Joshua Sing <joshua () hypera ! dev> | |||||
* | Add two const | tb | 2022-09-02 | 1 | -3/+3 | |
| | ||||||
* | Make test tables static const and fix a style nit | tb | 2022-09-02 | 1 | -5/+4 | |
| | ||||||
* | Simplify and clean up the ecdsa test a little. Use stdio instead of BIO | tb | 2022-09-02 | 1 | -195/+177 | |
| | | | | for output, use 'err' as a label and avoid some silly repetitions. | |||||
* | Retire old SHA tests | tb | 2022-09-02 | 6 | -609/+0 | |
| | | | | | | The old tests were incomplete, some of them had no license and the code quality was questionable. The new tests by Joshua Sing cover what they did (and additionally SHA-224 and SHA-384). Many thanks! | |||||
* | Unhook old SHA tests | tb | 2022-09-02 | 1 | -4/+1 | |
| | ||||||
* | Add tests for 1 million repeated "a" | tb | 2022-09-02 | 1 | -39/+220 | |
| | | | | From Joshua Sing | |||||
* | Link sha test to regress | tb | 2022-09-01 | 1 | -1/+2 | |
| | ||||||
* | Add a nicely licensed, table-driven test for SHA | tb | 2022-09-01 | 2 | -0/+448 | |
| | | | | | | | This tests covers the NIST vectors for SHA-{1,224,256,384,256} and will soon be able to replace the old SHA tests entirely. From Joshua Sing <joshua () hypera ! dev> | |||||
* | Some missing return checks | tb | 2022-08-31 | 1 | -3/+5 | |
| | ||||||
* | Avoid some buffer overflows in ecdsatest | tb | 2022-08-31 | 1 | -2/+15 | |
| | | | | | | The ASN.1 encoding of the modified ECDSA signature can grow in size due to padding of the ASN.1 integers. Instead of reusing the same signature buffer freshly allocate it. Avoids some buffer overflows caught by ASAN. | |||||
* | Revert previous. Committed the wrong version of the diff. | tb | 2022-08-31 | 1 | -14/+4 | |
| | ||||||
* | Avoid some buffer overflows in ecdsatest | tb | 2022-08-31 | 1 | -4/+14 | |
| | | | | | | The ASN.1 encoding of the modified ECDSA signature can grow in size due to padding of the ASN.1 integers. Instead of reusing the same signature buffer freshly allocate it. Avoids some buffer overflows caught by ASAN. | |||||
* | Add regress test for the encoding of an ASN1_INTEGER with NULL data. | jsing | 2022-08-28 | 1 | -1/+38 | |
| | ||||||
* | Test EVP_chacha20_poly1305() (linking statically for now) | jsing | 2022-08-20 | 2 | -3/+4 | |
| | ||||||
* | Fix upper bound in a for loop (no functional change). | tb | 2022-08-12 | 1 | -2/+2 | |
| | ||||||
* | Tweak a comment to be more accurate. | tb | 2022-08-12 | 1 | -3/+3 | |
| | ||||||
* | Update copyright for additional/new code. | jsing | 2022-07-30 | 1 | -1/+2 | |
| | ||||||
* | Provide additional AEAD test cases. | jsing | 2022-07-30 | 6 | -1/+1991 | |
| | | | | | | | | | Bring in additional AEAD test cases from BoringSSL. This provides additional coverage for AES-{128,192,256}-GCM, as well as Chacha20-Poly1305 and XChaCha20-Poly1305. Discussed with tb@ | |||||
* | Add EVP_aes_192_gcm() as a known AEAD. | jsing | 2022-07-30 | 1 | -1/+3 | |
| | ||||||
* | Allow the AEAD to be specified for a test file. | jsing | 2022-07-30 | 2 | -8/+12 | |
| | | | | | Currently, this must be specified per test - allow it to be given as a command line argument that applies to the entire test file. | |||||
* | Run AEAD tests against EVP_CIPHER implementations. | jsing | 2022-07-30 | 1 | -15/+220 | |
| | | | | | | | | In addition to running AEAD tests against the EVP_AEAD implementation, also run them against the EVP_CIPHER implementation where applicable. This is a perfect example of why EVP_AEAD exists and why EVP_CIPHER is completely unsuited for use with AEADs... | |||||
* | Allow quoted ASCII strings as input for AEAD regress. | jsing | 2022-07-30 | 1 | -21/+42 | |
| | | | | | | Currently, each line in the text file is expected to be string of hexadecimal digits. In addition to this, allow a line to be given as an quoted ASCII string. | |||||
* | Sort includes. | jsing | 2022-07-30 | 1 | -4/+4 | |
| | ||||||
* | Less #ifndef OPENSSL_NO_* | jsing | 2022-07-30 | 1 | -17/+1 | |
| | | | | | We're not going to be compiling without AES or CHACHA/POLY1305 anytime soon. | |||||
* | Fix comment formatting. | jsing | 2022-07-30 | 1 | -4/+7 | |
| | ||||||
* | Switch to ISC license. | jsing | 2022-07-30 | 1 | -46/+13 | |
| | | | | | | | Use Google's ISC license for this code - this was originally being upstreamed to OpenSSL by Adam Langley, however it was never actually accepted and eventually ended up in BoringSSL (via commit dfe3053086). The same change was made a long time ago for evp/evp_aead.c and others. | |||||
* | Add a second test to validate the tables in the library. | tb | 2022-07-28 | 1 | -1/+42 | |
| | ||||||
* | Adjust a comment to reflect reality, minor code tweaks. | tb | 2022-07-27 | 1 | -7/+7 | |
| | ||||||
* | minor tweaks: unwrap a line, tweak a comment and zap an empty line | tb | 2022-07-26 | 1 | -5/+3 | |
| | ||||||
* | Add a regression test for bn_isqrt.c | tb | 2022-07-25 | 2 | -1/+302 | |
| | | | | | This validates the tables used in bn_is_perfect_square() and checks that for randomly generated numbers the isqrt() is what it is expected to be. | |||||
* | Enable Wycheproof primality tests. | tb | 2022-07-13 | 2 | -4/+4 | |
| | ||||||
* | The asn1time test no longer needs static linking. | tb | 2022-07-12 | 1 | -4/+1 | |
| | ||||||
* | Check that ASN1_{INTEGER,ENUMERATED}_get(NULL) return 0 as documented. | tb | 2022-07-09 | 1 | -1/+22 | |
| | ||||||
* | whitespace | tb | 2022-07-08 | 1 | -3/+3 | |
| | ||||||
* | Add to variables instead of overriding them | tb | 2022-07-08 | 1 | -4/+4 | |
| | ||||||
* | Add support for primality checking | tb | 2022-07-07 | 4 | -10/+218 | |
| | | | | | | | | | | | | | Project Wycheproof's primality_tests.json contain a set of 280 numbers that trigger edge cases in Miller-Rabin and related checks. libcrypto's Miller-Rabin test is known to be rather poor, hopefully we will soon see a diff on tech that improves on this. This extends the Go test in the usual way and also adds a perl script that allows testing on non-Go architectures. Deliberately not yet linked to regress since the tests are flaky with the current BN_is_prime_ex() implementatation. | |||||
* | cope with ASN1_TIME_set_string_X509() rename | anton | 2022-07-05 | 1 | -3/+3 | |
| | ||||||
* | Add valid time test from ruby regress, and check ASN1_time_to_tm | beck | 2022-06-30 | 1 | -1/+27 | |
| | | | | against recorded time value. |