Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add SHAKE-128 and SHAKE-256 as hash functions | Jack Lloyd | 2016-11-10 | 12 | -93/+326 |
| | |||||
* | Remove remaining old style casts. | Jack Lloyd | 2016-11-09 | 3 | -7/+6 |
| | | | | | | Still not a hard error even in maintainer mode because sometimes system headers pull in C style casts via macros (eg MAP_FAILED). But, it not being a hard error makes it easy to backslide. | ||||
* | NewHope cleanup | Jack Lloyd | 2016-11-09 | 1 | -63/+300 |
| | | | | Remove old style casts, wrap some very long lines. | ||||
* | Check missing Pipe::read return values | Jack Lloyd | 2016-11-09 | 2 | -6/+12 |
| | |||||
* | Add BOTAN_WARN_UNUSED_RESULT macro | Jack Lloyd | 2016-11-09 | 3 | -13/+19 |
| | | | | Only works for GCC and Clang | ||||
* | Assert expected EOF from read | Jack Lloyd | 2016-11-09 | 1 | -1/+1 |
| | | | | Found by Coverity. | ||||
* | Correct comment [ci skip] | Jack Lloyd | 2016-11-08 | 1 | -1/+1 |
| | |||||
* | Remove Key_Type typedefs | Jack Lloyd | 2016-11-08 | 14 | -32/+0 |
| | | | | Also part of Algo_Registry and not needed after #668 | ||||
* | Remove Spec typedef from pk_ops | Jack Lloyd | 2016-11-08 | 1 | -35/+0 |
| | | | | Was used by Algo_Registry lookups, no longer needed after #668 | ||||
* | Add CPUID::is_little_endian | Jack Lloyd | 2016-11-07 | 2 | -0/+35 |
| | | | | | Having a runtime endian test to verify against the build setting is useful. | ||||
* | If peek fails, force EOF with a read | Jack Lloyd | 2016-11-07 | 1 | -0/+3 |
| | | | | | | DataSource_Stream::peek resets EOF bit after a failed peek Fixes #657 cert_info infinite loop | ||||
* | Add OID for XMSS | Jack Lloyd | 2016-11-06 | 1 | -0/+3 |
| | | | | [ci skip] | ||||
* | Update Doxygen comment [ci skip] | Jack Lloyd | 2016-11-06 | 1 | -1/+0 |
| | |||||
* | Add ec_group_info cmdlet | Jack Lloyd | 2016-11-06 | 1 | -0/+35 |
| | |||||
* | Add signature KAT test for GOST 34.10-2001 | Jack Lloyd | 2016-11-06 | 3 | -1/+49 |
| | | | | | | Vectors here just whatever we spit out, but I can't find any GOST vectors using the 'A' param set. Anyway at least with this, we are testing to have consistent behavior across platforms. | ||||
* | Keep track of the number of synchronisations achieved | Joel Low | 2016-11-06 | 2 | -3/+11 |
| | | | | | This allows wait() to be called immediately after sync() returns, even if not all of the waiting threads have awoken. | ||||
* | Re-enable the Threaded Fork test | Joel Low | 2016-11-06 | 1 | -1/+1 |
| | |||||
* | Implement barriers for Threaded Fork | Joel Low | 2016-11-06 | 4 | -11/+84 |
| | | | | | | | | This commit introduces a concept of a barrier, where all threads must synchronise before continuing. Threaded Fork uses this to ensure that all input is consumed by each sink exactly once. Fixes #695. | ||||
* | Tweak readme texts | Jack Lloyd | 2016-11-05 | 1 | -0/+8 |
| | | | | [ci skip] | ||||
* | Revert "Move contrib/sqlite to github.com/randombit/botan-sqlite" | Jack Lloyd | 2016-11-05 | 7 | -0/+792 |
| | | | | | | This reverts commit cfb12bf77940c566de1e6de4a79db6fe0d02ef1e. tl;dr monorepo is better, especially for a project this small. | ||||
* | Fixes for Perl | Jack Lloyd | 2016-11-05 | 2 | -2/+3 |
| | |||||
* | Revert "Remove the Perl XS module" | Jack Lloyd | 2016-11-05 | 15 | -0/+1861 |
| | | | | | | | This reverts commit 2ec08fa6b5fd270e50f8526c1c6dfaabfda66e02. The Perl wrapper was removed as unmaintained, but nobody is likely to maintain it if they don't know it exists. | ||||
* | Add an additional test for Threaded_Fork | Jack Lloyd | 2016-11-05 | 1 | -0/+25 |
| | |||||
* | Fix test, catching wrong exception type | Jack Lloyd | 2016-11-05 | 1 | -1/+1 |
| | |||||
* | Merge GH #709 Fix DSA param gen for FIPS 186-3 | Jack Lloyd | 2016-11-05 | 1 | -5/+3 |
|\ | |||||
| * | Fix DSA parameter generation to use the correct loop bound. | Jack Lloyd | 2016-11-03 | 1 | -5/+3 |
| | | | | | | | | | | | | | | | | 4096 is the value from FIPS 186-2, FIPS 186-3 uses 4*pbits which is the obvious extension of the FIPS 186-2 scheme to larger parameter sizes. Pointed out by @neverhub Removes support for 512 and 768 bit DSA groups because WTF no. | ||||
* | | Avoid bogus include with compression disabled | Jack Lloyd | 2016-11-04 | 1 | -1/+4 |
| | | |||||
* | | Merge GH #710 Allow custom EC curve to be specified at build time | Jack Lloyd | 2016-11-04 | 6 | -1/+45 |
|\ \ | |||||
| * | | Change oids.py and regenerate oids.cpp | René Korthaus | 2016-11-03 | 2 | -1/+11 |
| | | | |||||
| * | | Add an in-house EC curve for TLS at compile-time | René Korthaus | 2016-11-03 | 5 | -0/+34 |
| | | | | | | | | | | | | | | | | | | One additional, application-specific curve can be added at compile time, using the new configure.py --house-curve=curve.pem,funky311,1.2.3.4,FEFF. | ||||
* | | | Merge GH #714 Use pk_ops_fwd header | Jack Lloyd | 2016-11-04 | 1 | -12/+1 |
|\ \ \ | |||||
| * | | | use "forward declare header" pk_ops_fwd.h instead of self forward declaring them | Daniel Neus | 2016-11-04 | 1 | -12/+1 |
| | | | | |||||
* | | | | Skip bzip2 compression entropy tests | Jack Lloyd | 2016-11-04 | 1 | -8/+5 |
| | | | | | | | | | | | | | | | | Large block size makes the differential test fragile. | ||||
* | | | | Fix entropy tests | Jack Lloyd | 2016-11-04 | 1 | -6/+3 |
| | | | | | | | | | | | | | | | | This interface changed, and it seems the test was only partially updated. | ||||
* | | | | Handle missing SHA-x in DSA param gen test | Jack Lloyd | 2016-11-04 | 1 | -8/+13 |
| | | | | |||||
* | | | | Don't require compression in filter code | Jack Lloyd | 2016-11-04 | 3 | -1/+8 |
| | | | | |||||
* | | | | Fix PKCS11 test error | Jack Lloyd | 2016-11-04 | 5 | -22/+66 |
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously PKCS11_ECDSA_PrivateKey::check_key failed because no verification is possible using this key type (does not derive from public key). Split keypair consistency to allow two key arguments. ECDSA keypair consistency disabled in the tests still, because SoftHSMv2 gives mechanism invalid errors. I think this is a SoftHSMv2 issue with the signature mechanism. Remove no longer used Key_Type typedefs (need to be removed everywhere). GH #712 | ||||
* | | | Add test for DSA parameter generation | Jack Lloyd | 2016-11-03 | 2 | -2/+130 |
| | | | | | | | | | | | | | | | Limited to 1024 bit params by default to keep runtimes reasonable, but test vectors for all sizes from FIPS 186-3 do pass. | ||||
* | | | Add short output KDF1 test | Jack Lloyd | 2016-11-03 | 1 | -0/+5 |
| |/ |/| | |||||
* | | Fix bogus code | Jack Lloyd | 2016-11-03 | 1 | -2/+2 |
| | | | | | | | | | | Not caught by anything because nothing includes lookup.h except for the amalgamation build which sucks up everything. | ||||
* | | Run PKCS11 key self tests | Jack Lloyd | 2016-11-03 | 1 | -0/+3 |
|/ | |||||
* | Compile fix | Jack Lloyd | 2016-11-03 | 1 | -1/+1 |
| | |||||
* | Simplify some code by using T::create_or_throw | Jack Lloyd | 2016-11-03 | 10 | -75/+26 |
| | |||||
* | Remove unused values from build.h | Jack Lloyd | 2016-11-03 | 2 | -4/+11 |
| | | | | | | | Have the /proc setting in build.h actually control the entropy source configuration (!) GH #708 | ||||
* | Merge GH #706 Remove ability to add OIDs at runtime. Remove OID lock | Jack Lloyd | 2016-11-03 | 15 | -567/+722 |
|\ | |||||
| * | Remove ability to add OIDS at runtime. Remove global OID lock. | Jack Lloyd | 2016-11-03 | 15 | -567/+722 |
| | | | | | | | | | | | | | | | | | | | | | | OID map is now generated from an input file on an as needed basis. Just uses a sequence of ifs - simple, fast, and small code size. Merges oid_lookup sub-module which was already required by asn1 anyway, so completely non-optional. Removes @neusdan's nice OID tests since without any runtime adds the tests are moot. | ||||
* | | Merge GH #705 Simplify EMSA1 validation with message recovery | Jack Lloyd | 2016-11-03 | 1 | -14/+12 |
|\ \ | |||||
| * | | Simplify EMSA1 message recovery code | Jack Lloyd | 2016-11-02 | 1 | -14/+12 |
| | | | |||||
* | | | Update PKCS11 code, no RNG required | Jack Lloyd | 2016-11-03 | 1 | -14/+1 |
| | | | |||||
* | | | Add create_key self test | Jack Lloyd | 2016-11-03 | 1 | -0/+2 |
| | | |