aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add --test-runs option to test binaryJack Lloyd2017-03-291-5/+9
| | | | Just runs the specified test several times, or until first failure.
* Merge GH #879 Fix rsa_blinding tests and add one more testJack Lloyd2017-03-291-3/+46
|\
| * Fix rsa_blinding tests if emsa_raw is missing and add tests for rsa_blinding ↵Daniel Neus2017-02-161-3/+46
| | | | | | | | while encrypting/decrypting
* | Merge GH #899 Add ability to specify iterations when encrypting a private keyJack Lloyd2017-03-291-20/+8
|\ \
| * | Add ability to specify iterations when encrypting a private keyJack Lloyd2017-02-261-20/+8
| | | | | | | | | | | | GH #896
* | | Merge GH #946 Expose multiple precision integers in C interfaceJack Lloyd2017-03-291-7/+226
|\ \ \
| * | | Expose BigInt API subset to C APIJack Lloyd2017-03-281-7/+226
| | | | | | | | | | | | | | | | Also adds RSA key constructors using BN
* | | | Remove old timing test suiteJack Lloyd2017-03-287-0/+51
|/ / / | | | | | | | | | Replaced by version in cli added in #894
* | | Merge GH #944 Add check_key to C APIJack Lloyd2017-03-281-0/+3
|\ \ \
| * | | Expose PK::check_key functions in C interfaceJack Lloyd2017-03-271-0/+3
| | | |
* | | | Avoid long tests for each bcrypt passwordJack Lloyd2017-03-241-2/+22
| | | |
* | | | Fix incorrect password truncation in bcrypt password hashing.Jack Lloyd2017-03-242-3/+273
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | The 56 char bound is bogus; Blowfish itself allows at most 448 bits in the key schedule, but Bcrypt's modification allows up to 72 chars for the password. Bug pointed out by Solar Designer. Also reject work factors 0...3 since all other extant bcrypt implementations require at least work factor 4. Adds more bcrypt tests generated by crypt_bcrypt and OpenBSD's version.
* | | Fix some compiler warnings.Jack Lloyd2017-03-221-1/+1
| | |
* | | Merge GH #932 Guard filters tests with all necessary macrosJack Lloyd2017-03-221-12/+32
|\ \ \
| * | | Guard filters tests with all necessary macrosRené Korthaus2017-03-211-12/+32
| | | | | | | | | | | | | | | | | | | | The filters tests were missing many BOTAN_HAS guards for hash functions, MACs and ciphers used.
* | | | Fix #917: calendar_point::to_std_timepoint() does not support years after 2037Daniel Neus2017-03-212-2/+6
|/ / / | | | | | | | | | Only throw on systems where 32 bit std::time_t is used.
* | | Merge GH #915 Fix OS::get_processor_timestamp()Jack Lloyd2017-03-191-1/+2
|\ \ \
| * | | Fix OS::get_processor_timestamp() testsDaniel Neus2017-03-141-1/+2
| | | |
* | | | No C++ exceptions from cpu probe functions. See GH #920Jack Lloyd2017-03-191-4/+0
| | | |
* | | | Fix: UTCTime interpreted as GeneralizedTimeDaniel Neus2017-03-131-22/+95
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example: "200305100350Z" interpreted as "2003/05/10 03:50:00 UTC" correct is "2020/03/05 10:03:50 UTC" According to RFC 5280: UTCTime values ... MUST include seconds (i.e., times are YYMMDDHHMMSSZ) -> length 13 GeneralizedTime values ... MUST include seconds (i.e., times are YYYYMMDDHHMMSSZ) -> length 15 I think we should enforce the RFC5280 rules even if the ASN.1 rules are not that strict.
* | | Merge GH #901 Allow OCSP requests without the full subject certificateJack Lloyd2017-03-071-2/+8
|\ \ \
| * | | Allow OCSP requests without the full subject certificateNuno Goncalves2017-03-041-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A OCSP request doesn't need the full subject certificate. This extends the API to require instead of the subject certificate: * OCSP::Request: subject serial. * OCSP::online_check: subject serial AND ocsp responder url. API breaking change: * removal of OCSP::Request::subject() as OCSP::Request doesn't need to hold the certificate, but only the serial. Signed-off-by: Nuno Goncalves <[email protected]>
* | | | Merge GH #904 Fix memory leak in TLS testsJack Lloyd2017-03-031-4/+6
|\ \ \ \ | |/ / / |/| | |
| * | | fix mem leak in tls unit testsDaniel Neus2017-03-031-4/+6
| | | |
* | | | Change name constraint test to use a fixed reference timeJack Lloyd2017-03-031-2/+6
|/ / / | | | | | | | | | Test certs have expired.
* | | Merge GH #902 Extend EC_PublicKey check, add EC_Group check, ECC invalid key ↵Jack Lloyd2017-03-025-1/+455
|\ \ \ | | | | | | | | | | | | tests
| * | | remove debug output from ecc_invalid unit testsNever2017-02-281-2/+0
| | | |
| * | | Merge pull request #2 from ↵Tobias | Never2017-02-285-1/+457
| |\ \ \ | | |_|/ | |/| | | | | | | | | | Rohde-Schwarz-Cybersecurity/extended-ec-public-key-checks Extended ec public key checks
| | * | Add ECDSA key tests from Google's project WycheproofRené Korthaus2017-02-124-13/+57
| | | |
| | * | Add test vectors for invalid ECDSA public keys from FIPS 186-4René Korthaus2017-02-122-0/+185
| | | |
| | * | Add test vectors for invalid ECDSA public keys from FIPS 186-2René Korthaus2017-02-123-1/+228
| | | |
* | | | The certificate being tested by the OCSP online test has expired.Jack Lloyd2017-02-261-1/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | This caused a test failure if run with --run-online-tests. This is not the default but it caused the coverage build to fail. Fix the test to reflect expired status. The whole thing does not seem wholly satsifactory since we are still relying the behavior on an external party, perhaps a mock OCSP responder should be created for the tests.
* | | Add missing try/catch in invalid signature testJack Lloyd2017-02-261-2/+10
|/ / | | | | | | From GH #889
* | Fix botan-test verbose modeRené Korthaus2017-02-142-2/+2
| |
* | Remove std::cout accidentally left from debuggingRené Korthaus2017-02-121-4/+0
|/
* Fix compiling TLS tests without DSAJack Lloyd2017-02-111-0/+2
|
* Correct GH #869 for DSS CBC suitesJack Lloyd2017-02-071-2/+2
|
* Merge GH #869 Add tests for TLS DSS authJack Lloyd2017-02-071-5/+92
|\
| * Use SHA-384 with DHE_DSS_AES_256_CBCRené Korthaus2017-02-061-1/+5
| |
| * Add tests for DHE_DSS ciphersuitesRené Korthaus2017-02-061-5/+88
| | | | | | | | | | As long as we support DSS ciphersuites, we should test them, even if they're deprecated.
* | Add TLS policy tests for DSA keysRené Korthaus2017-02-061-0/+32
|/
* Support zero-length IV in ChaChaJack Lloyd2017-02-021-0/+3
| | | | Equivalent to an 8 byte all-zero IV, same handling as Salsa.
* Merge GH #860 Support CPU instruction probe on Windows, add ↵Jack Lloyd2017-01-311-12/+52
|\ | | | | | | OS::get_high_resolution_clock
| * Fix test for 32-bit buildsJack Lloyd2017-01-281-2/+2
| |
| * Change meaning of get_processor_timestampJack Lloyd2017-01-271-12/+52
| | | | | | | | | | | | | | | | | | | | | | Now let it return 0 if we have no hardware timestamp, and add OS::get_high_resolution_clock for best available clock. This is mainly because it's confusing for get_processor_timestamp to return something that is not a processor timestamp and because it simplifies adding cycles/byte output if we know that something is or is not a cycle counter. Also adds Windows SEH version of run_cpu_instruction_probe. Untested, uncompiled.
* | Add support for NEON in SIMD_4x32Jack Lloyd2017-01-293-0/+174
|/ | | | Tested on qemu-aarch64
* Add more Noekeon testsJack Lloyd2017-01-271-8/+4114
| | | | | | Values take from the NESSIE submission package. [ci skip]
* Fix PKCS11 tests when ECDH or ECDSA was disabledJack Lloyd2017-01-241-10/+11
| | | | It assumed if ECC was included then ECDH and ECDSA was also
* Fix various SunCC and Solaris warnings and build problems.Jack Lloyd2017-01-246-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | Based on build output sent by @noloader. If RLIMIT_MEMLOCK is not defined, assume regular user is not able to call mlock. This probably also affected Clang/GCC on Solaris. Work around resolution issue in SIMD_4x32 where it finds ambiguity between arg taking uint32_t and __m128i. This is probably some artifact of how SunCC represents vector types, and seems highly bogus in general but is easy to work around here. Change constructor taking a single value to instead be `SIMD_4x32::splat` function. The SIMD class is internal, so no API implications. Fix various warnings about lambda functions that were missing return types and which were not a single return statement. AIUI C++11 doesn't guarantee that lambda return type will be deduced in that situation, though in practice every compiler including SunCC seems to handle it. Disable AVX2 usage, since SunCC's intrinsics seem to be broken - its _mm_loadu_si256 takes non-const pointer. Rename a few variables in the tests to avoid shadowed var warnings.
* Skip instruction probe test where fn not implementedJack Lloyd2017-01-231-0/+5
|