Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge GH #410 enable -Wpedantic | Jack Lloyd | 2016-01-17 | 1 | -1/+1 |
|\ | |||||
| * | Enable -Wpedantic on gcc and clang | René Korthaus | 2016-01-13 | 1 | -1/+1 |
| | | |||||
* | | Avoid test failures in KEM when KDF is not found. | Jack Lloyd | 2016-01-17 | 2 | -19/+44 |
|/ | | | | GH #369 | ||||
* | Get rid of "extra ';'" warnings and force semicolon after macros | Simon Warta | 2016-01-11 | 1 | -1/+2 |
| | |||||
* | Mass-prefix member vars with m_ | René Korthaus | 2016-01-08 | 1 | -8/+8 |
| | |||||
* | add missing overrides | Daniel Neus | 2016-01-08 | 7 | -7/+7 |
| | | | | found by gcc with -Wsuggest-override | ||||
* | String comparision fixes | Daniel Neus | 2016-01-04 | 1 | -2/+2 |
| | | | | fix PVS-Studio perfomance warnings | ||||
* | Add ECDH via OpenSSL | Jack Lloyd | 2016-01-04 | 2 | -53/+66 |
| | | | | | | | | | | Expose provider param in PK_Key_Agreement API Handle multiple providers in key agreement tests Fix some funky formatting of P-521 EC points in ecdh.vec which was being rejected by OpenSSL; for whatever reason the CAVS file had the affine coords with far more leading zeros than necessary. | ||||
* | Add some more secp256k1 point mult tests | Jack Lloyd | 2016-01-03 | 1 | -0/+184 |
| | |||||
* | Add ECDH tests | Jack Lloyd | 2016-01-03 | 5 | -7/+592 |
| | | | | Only has vectors for NIST curves (data taken from NIST CAVS file) | ||||
* | Fix PointGFp multiplication bug | Jack Lloyd | 2016-01-03 | 2 | -8/+1057 |
| | | | | | | There was a special case for small scalars which managed to forget that the integer 3 also fits into two bits. Found by adding a new set of ECC point mul tests for the NIST curves. | ||||
* | Merge pull request #381 from cordney/fix-load-unencryped-key-from-ber | Jack Lloyd | 2015-12-31 | 1 | -3/+0 |
|\ | | | | | Fix loading of unencrypted, BER encoded private keys via PKCS8 api | ||||
| * | Fix loading of unencrypted, BER encoded private keys via PKCS8 api | René Korthaus | 2015-12-25 | 1 | -3/+0 |
| | | |||||
* | | Remove debug printf | Jack Lloyd | 2015-12-31 | 1 | -1/+0 |
| | | |||||
* | | Avoid having Command* objects be created until requested. | Jack Lloyd | 2015-12-30 | 1 | -2/+2 |
| | | | | | | | | Avoids various static init and destruction hassles. | ||||
* | | Correct copyright info in unit_ecc.cpp file | Jack Lloyd | 2015-12-26 | 1 | -1/+6 |
| | | | | | | | | | | | | | | | | At some point during the test changeover the (C) info got lost from this file. Also try randomizing the point repr in the copy test, just to spice things up a bit. | ||||
* | | Merge pull request #378 from neusdan/warning_fixes | Jack Lloyd | 2015-12-26 | 10 | -22/+15 |
|\ \ | | | | | | | Some trivial compiler and PVS-Studio warning fixes | ||||
| * | | some trivial compiler/PVS-Studio warning fixes | Daniel Neus | 2015-12-22 | 10 | -22/+15 |
| | | | |||||
* | | | Add generalized KEM interface | Jack Lloyd | 2015-12-26 | 5 | -14/+119 |
| | | | | | | | | | | | | | | | | | | Convert McEliece KEM to use it Add RSA-KEM | ||||
* | | | Another Clang warning | Jack Lloyd | 2015-12-25 | 1 | -1/+1 |
| |/ |/| | |||||
* | | Fix a few clang warnings. Set clang sanitizer flags | Jack Lloyd | 2015-12-24 | 3 | -4/+5 |
| | | |||||
* | | Improve roundtrip BER/PEM tests | Jack Lloyd | 2015-12-23 | 1 | -24/+71 |
| | | |||||
* | | Update NIST X509 tests to handle --data-dir and read expected results from a ↵ | Jack Lloyd | 2015-12-23 | 2 | -223/+148 |
| | | | | | | | | file | ||||
* | | Use --data-dir in test X509test_Path | Simon Warta | 2015-12-22 | 1 | -6/+5 |
|/ | | | | This allows me to build and run tests out-of-tree :) | ||||
* | Add missing try/catch in signature verification test. | Jack Lloyd | 2015-12-21 | 4 | -14/+30 |
| | | | | | | Improve diagnostics when an exception escapes a test GH #369 | ||||
* | Throw Lookup_Error instead of bare Exception when creating an obj fails | Jack Lloyd | 2015-12-20 | 1 | -4/+4 |
| | | | | | | | in the algo factory. Fixes remaining issues of GH #369 - test_pubkey.cpp was expecting Lookup_Error when something isn't found. | ||||
* | Merge pull request #371 from webmaster128/aes-gcm-testdata | Jack Lloyd | 2015-12-20 | 1 | -41/+122 |
|\ | | | | | Add all 18 GCM tests provided in NIST GCM spec | ||||
| * | Add all 18 Nist GCM tests | Simon Warta | 2015-12-20 | 1 | -41/+122 |
| | | | | | | | | | | | | | | | | This adds tests for key length 192 and 256. Test vector source: http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/gcm /gcm-spec.pdf Closes: #344 | ||||
* | | Add --data-dir option to test command | Jack Lloyd | 2015-12-20 | 33 | -238/+200 |
|/ | | | | | | | Understand using '-' on the command line to mean stdin Fix last few unit tests that wanted to write to the filesystem; removes outdata directory. | ||||
* | Prevent FFI tests from failing if bcrypt is disabled. GH #369 | Jack Lloyd | 2015-12-19 | 1 | -4/+10 |
| | |||||
* | Avoid test failures on missing algos | Jack Lloyd | 2015-12-19 | 2 | -5/+7 |
| | | | | GH #369 | ||||
* | If skipping a test due to diabled algo, only print if in verbose mode. | Jack Lloyd | 2015-12-19 | 4 | -33/+40 |
| | | | | | | Also fix KDF tests which failed on missing algo GH #367 | ||||
* | CLI rewrite | Jack Lloyd | 2015-12-19 | 4 | -144/+171 |
| | | | | | | | | | | | | | | | | | | The command line tools' origin as a collection of examples and test programs glued together led to some unfortunate problems; lots of hardcoded values, missing parameters, and obsolete crypto. Adds a small library for writing command line programs of the sort needed here (cli.h), which cuts the length of many of the commands in half and makes commands more pleasant to write and extend. Generalizes a lot of the commands also, eg previously only signing/verification with DSA/SHA-1 was included! Removes the fuzzer entry point since that's fairly useless outside of an instrumented build. Removes the in-library API for benchmarking. | ||||
* | Fix for minimized builds | Jack Lloyd | 2015-12-11 | 1 | -1/+1 |
| | |||||
* | Missing adds | Jack Lloyd | 2015-12-11 | 1 | -10/+12 |
| | |||||
* | Reroot the exception hierarchy into a toplevel Exception class | Jack Lloyd | 2015-12-11 | 10 | -27/+33 |
| | | | | | | | | As the alternatives are unfortunate for applications trying to catch all library errors, and it seems deriving from std::runtime_error causes problems with MSVC DLLs (GH #340) Effectively reverts 2837e915d82e43 | ||||
* | Fix indent in test_passhash | Simon Warta | 2015-12-08 | 1 | -1/+1 |
| | |||||
* | Missing test update for ECC group removal. | Jack Lloyd | 2015-12-02 | 1 | -4/+0 |
| | |||||
* | Remove support for broken 112 and 128 bit SECP ECC groups. | Jack Lloyd | 2015-12-02 | 1 | -4/+0 |
| | |||||
* | Fix compile error when compression is disabled | Jack Lloyd | 2015-11-29 | 1 | -1/+1 |
| | | | | | | Missed because Travis uses zlib and company even in the min build. GH #337 | ||||
* | Guard these test calls with the same feature macro guarding their definition. | Jack Lloyd | 2015-11-28 | 1 | -0/+2 |
| | | | | GH #337 | ||||
* | Add differential compression test. | Jack Lloyd | 2015-11-28 | 1 | -41/+87 |
| | | | | | Change getrusage output to static system data since it is sparse and changes rarely, and so actually does trigger the differential test. | ||||
* | Convert const char* arguments on Test:: to std::strings | Jack Lloyd | 2015-11-28 | 8 | -72/+57 |
| | | | | unless they are actually optional | ||||
* | New reseed_with_sources call on RNGs | Jack Lloyd | 2015-11-24 | 3 | -2/+118 |
| | | | | | | | | | | | | | Provides an easier way for an application to configure a list of entropy sources they'd like to use, or add a custom entropy source to their seeding. Exposes some toggles for the global/default entropy sources to build.h Adds basic entropy tests which runs the polls and does sanity checking on the results, including compression tests if available. These are less useful for the CSPRNG outputs but a good check for the ones producing plain ASCII like the /proc reader. | ||||
* | Disable some problem areas of TLS corruption test pending rewrite | Jack Lloyd | 2015-11-24 | 1 | -5/+2 |
| | | | | Should resolve the random CI breaks | ||||
* | Enhance tests main readability | Simon Warta | 2015-11-23 | 1 | -10/+15 |
| | |||||
* | Add helper for test output files. Remove last uses of hardcoded data dir macros | Jack Lloyd | 2015-11-16 | 5 | -60/+88 |
| | |||||
* | Avoid multiplication by zero here as get_affine will reject it | Jack Lloyd | 2015-11-13 | 1 | -1/+1 |
| | |||||
* | Include the version string in the test output | Jack Lloyd | 2015-11-13 | 1 | -0/+2 |
| | |||||
* | The TLS test for corrupted data was too strict in requiring that | Jack Lloyd | 2015-11-13 | 1 | -30/+32 |
| | | | | | the first block satisfy the request, since it was possible another record header appeared in some appended corrupted data. |