Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix header for getentropy on macOS | Jack Lloyd | 2018-03-09 | 2 | -1/+7 |
| | | | | Re #1481 | ||||
* | Don't default to PSS signatures | Jack Lloyd | 2018-03-09 | 1 | -4/+17 |
| | | | | | | Breaks with anything but RSA keys GH #1480 | ||||
* | Fix cpu clock ratio [ci skip] | Jack Lloyd | 2018-03-09 | 1 | -0/+2 |
| | |||||
* | Split out the memory pool logic | Jack Lloyd | 2018-03-09 | 6 | -161/+282 |
| | | | | | | Making a clear seperation between the OS specific code to get the pool, the singleton mlock allocator, and the general allocator logic. | ||||
* | Add OS::system_page_size | Jack Lloyd | 2018-03-09 | 2 | -4/+25 |
| | |||||
* | Use move to avoid needless some needless copies | Jack Lloyd | 2018-03-09 | 1 | -16/+16 |
| | |||||
* | Cleanup comments | Jack Lloyd | 2018-03-09 | 1 | -10/+7 |
| | |||||
* | Use blinded_base_point_multiply_x in the various signature schemes | Jack Lloyd | 2018-03-08 | 5 | -14/+17 |
| | |||||
* | Add benchmark for GOST-34.10 signatures | Jack Lloyd | 2018-03-08 | 1 | -0/+14 |
| | |||||
* | Small fiddly optimizations in locking_allocator | Jack Lloyd | 2018-03-08 | 1 | -5/+6 |
| | |||||
* | Avoid creating too-large values during ECDSA signing | Jack Lloyd | 2018-03-08 | 1 | -3/+5 |
| | | | | | It would cause the Barrett reduction to fallback to schoolbook division. Small but noticable speedup (2-3%) | ||||
* | Add blinded_base_point_multiply_x | Jack Lloyd | 2018-03-08 | 2 | -0/+20 |
| | | | | Often useful when the point is not needed | ||||
* | Mul into temps to avoid allocations | Jack Lloyd | 2018-03-08 | 1 | -7/+8 |
| | |||||
* | Add PointGFp::force_all_affine using Montgomery's trick | Jack Lloyd | 2018-03-08 | 3 | -9/+68 |
| | | | | Also be somewhat smarter in force_affine avoids several muls | ||||
* | Require explicit calls to add_affine | Jack Lloyd | 2018-03-08 | 2 | -5/+2 |
| | | | | Skipping the checks saves 3-7% for ECDSA | ||||
* | Merge GH #1478 Add mixed (J+A) point addition, faster scalar mults | Jack Lloyd | 2018-03-08 | 16 | -173/+466 |
|\ | |||||
| * | Add destructor for unique_ptr | Jack Lloyd | 2018-03-08 | 2 | -0/+7 |
| | | |||||
| * | Add mixed (J+A) point addition, new scalar mul for base points | Jack Lloyd | 2018-03-08 | 16 | -174/+460 |
| | | | | | | | | | | | | | | | | | | Adds PointGFp::force_affine(), ::add_affine(), and ::is_affine() Use a (very simple) technique for base point precomputations. Stick with fixed window for variable point inputs. Scalar blinding is now always enabled | ||||
* | | Add a way of specifying CPU clock speed for output purposes | Jack Lloyd | 2018-03-08 | 1 | -5/+22 |
| | | |||||
* | | Add estimate of cycle counter rate to speed output | Jack Lloyd | 2018-03-08 | 1 | -3/+19 |
|/ | |||||
* | Fix test if OpenSSL provider enabled. | Jack Lloyd | 2018-03-06 | 1 | -1/+1 |
| | | | | | OpenSSL hash object just reflects the arg vs Botan object which calls it SHA-160. Avoid the confusion by using SHA-256 instead. | ||||
* | Slight improvements in filter test coverage | Jack Lloyd | 2018-03-06 | 2 | -10/+26 |
| | |||||
* | Add test that invalid hash function param strings cause errors | Jack Lloyd | 2018-03-06 | 1 | -1/+54 |
| | |||||
* | Add longer tests for SHA-224 and SHA-512-256 | Jack Lloyd | 2018-03-06 | 2 | -0/+7 |
| | |||||
* | Add longer test vector of Parallel hash | Jack Lloyd | 2018-03-06 | 1 | -0/+2 |
| | |||||
* | Increase sample count in random_integer Chi-square test | Jack Lloyd | 2018-03-06 | 1 | -1/+1 |
| | |||||
* | Support 1024-bit inputs in poly_double function | Jack Lloyd | 2018-03-06 | 2 | -14/+36 |
| | | | | GH #1477 | ||||
* | Rename threefish module to threefish_512 | Jack Lloyd | 2018-03-06 | 12 | -14/+33 |
| | | | | GH #1477 | ||||
* | Correctly read the POWER cycle counter | Jack Lloyd | 2018-03-06 | 1 | -8/+11 |
| | | | | | | | The upper register can overflow so we need to re-read the upper register to ensure we we not on a boundary. GH #1460 | ||||
* | Extend speed to support ratio of CPU clocks | Jack Lloyd | 2018-03-06 | 1 | -146/+173 |
| | | | | | | | This is to handle machines (like POWER8) where the CPU clock cycles increment at a slower rate than the actual machine clocks. GH #1460 | ||||
* | Handle cert.subject_info("Email") | Jack Lloyd | 2018-03-06 | 1 | -0/+3 |
| | | | | GH #1446 | ||||
* | Ensure exception types are exported from DLL | Jack Lloyd | 2018-03-06 | 5 | -6/+6 |
| | | | | GH #983 | ||||
* | Replace BigInt::random_integer test with a Chi-square test | Jack Lloyd | 2018-03-06 | 2 | -41/+62 |
| | | | | GH #1476 | ||||
* | Include AKID in generated self signed certificates | Jack Lloyd | 2018-03-06 | 2 | -4/+12 |
| | | | | GH #1007 | ||||
* | Avoid std::bind in Channel::received_data | Jack Lloyd | 2018-03-05 | 1 | -2/+1 |
| | | | | | | Lambda works just as well here. GH #493 | ||||
* | Add X509_Certificate::subject_public_key_info | Jack Lloyd | 2018-03-05 | 2 | -3/+16 |
| | | | | Fixes #277 | ||||
* | Fix ASN1 printer test | Jack Lloyd | 2018-03-05 | 2 | -3/+3 |
| | |||||
* | Allow decoding ASN.1 OID 0.0 | Jack Lloyd | 2018-03-05 | 5 | -2/+194 |
| | | | | | | | | I had no idea this was a valid OID but apparently it is. And for some who-knows-why reason FreeTSA certificate includes it in their certificate policy extension. GH #355 | ||||
* | Support decoding of ECC groups with seed parameter | Jack Lloyd | 2018-03-04 | 3 | -0/+29 |
| | | | | Closes GH #874 | ||||
* | Enable SHA-1 intrinsics on MSVC | Jack Lloyd | 2018-03-04 | 1 | -0/+1 |
| | | | | GH #939 | ||||
* | Use Barrett instead of repeated divisions by p here | Jack Lloyd | 2018-03-04 | 1 | -3/+6 |
| | | | | Doesn't matter much since its a one time setup cost but can't hurt. | ||||
* | Add speed comparison of Barrett vs % operator | Jack Lloyd | 2018-03-04 | 1 | -0/+32 |
| | |||||
* | Reduce temp usage in PointGFp addition and doubling | Jack Lloyd | 2018-03-04 | 4 | -104/+95 |
| | | | | No noticable change in performance | ||||
* | In ECC bench test brainpool too | Jack Lloyd | 2018-03-04 | 1 | -1/+3 |
| | | | | Allows comparing Solinas reduction vs Montgomery | ||||
* | Merge GH #1470 Use soft fail for OCSP | Jack Lloyd | 2018-03-04 | 8 | -21/+132 |
|\ | |||||
| * | Document OCSP softfail/hardfail check behaviour. | souch | 2018-03-02 | 1 | -0/+3 |
| | | |||||
| * | OCSP softfail revocation check | Mathieu Souchaud | 2018-03-01 | 7 | -21/+129 |
| | | |||||
* | | Rename build_tests.py to make it more obvious this is not for end users | Jack Lloyd | 2018-03-04 | 1 | -0/+0 |
| | | | | | | | | GH #1456 | ||||
* | | Fix timing_test names | Jack Lloyd | 2018-03-04 | 2 | -10/+10 |
| | | | | | | | | Closes #1465 | ||||
* | | Simplify indexing in this loop | Jack Lloyd | 2018-03-04 | 1 | -5/+5 |
| | |