Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge GH #2298 Clean up prime generation logic | Jack Lloyd | 2020-03-06 | 1 | -6/+18 |
|\ | |||||
| * | Clean up prime generation logic slightly | Jack Lloyd | 2020-03-06 | 1 | -6/+18 |
| | | | | | | | | | | | | We were trying to generate safe primes using a weak check on q but actually this was rounded up to 128 bit probability check anyway. So just do that from the start then check p=2*q+1 | ||||
* | | Optimize inverse_mod | Jack Lloyd | 2020-03-06 | 1 | -18/+22 |
|/ | | | | About 25% faster | ||||
* | Remove use of Binary Extended Euclidean Algorithm for inversion | Jack Lloyd | 2020-03-01 | 1 | -10/+27 |
| | | | | | Instead use two specialized algorithms, one for odd modulus and the other for power of 2 modulus, then combine the results using CRT. | ||||
* | Add more tests for speed util | Jack Lloyd | 2020-02-09 | 1 | -2/+1 |
| | |||||
* | Add -Werror mode for CI build | Jack Lloyd | 2019-12-03 | 1 | -1/+1 |
| | |||||
* | Tweak block cipher encryption perf test | Jack Lloyd | 2019-10-03 | 1 | -2/+3 |
| | | | | | It was computing the block count from the byte length, which turned out to be about 15% of the total runtime when using AES-NI | ||||
* | Merge GH #2124 Add poly_dbl speed util | Jack Lloyd | 2019-09-28 | 1 | -0/+30 |
|\ | |||||
| * | Add poly_dbl speed util | Jack Lloyd | 2019-09-28 | 1 | -0/+30 |
| | | |||||
* | | OCB optimizations | Jack Lloyd | 2019-09-28 | 1 | -1/+1 |
|/ | | | | | | | Mostly avoiding/caching dynamic allocations. Also in speed, increment the IV from the low end which demonstrates OCB's enhanced handling of that case. | ||||
* | Fix small bug in is_prime speed test | Jack Lloyd | 2019-09-27 | 1 | -2/+2 |
| | | | | | | | We were testing p instead of p + i as intended. Also change the loop induction to work around what appears to be a lgtm false positive. | ||||
* | Add a variant of RandomNumberGenerator::random_vec | Jack Lloyd | 2019-09-13 | 1 | -2/+2 |
| | | | | | This avoids the unlock(rng.random_vec(...)) pattern which is pretty wasteful in terms of heap overhead. | ||||
* | Remove modexp based inversion from speed test | Jack Lloyd | 2019-08-23 | 1 | -9/+0 |
| | | | | Not competitive so not interesting | ||||
* | Fix various MSVC warnings | Jack Lloyd | 2019-06-29 | 1 | -1/+2 |
| | |||||
* | Change XMSS OIDs and feature macro name | Jack Lloyd | 2019-06-23 | 1 | -2/+2 |
| | | | | Since draft6 and final RFC are not compatible ... | ||||
* | Fix some LGTM issues | Jack Lloyd | 2019-06-19 | 1 | -0/+1 |
| | |||||
* | Argon2: minor optimizations, add tests of CLI, tweak tuning | Jack Lloyd | 2019-05-30 | 1 | -0/+46 |
| | |||||
* | Fix param names to match RFC | Jack Lloyd | 2019-05-13 | 1 | -4/+4 |
| | |||||
* | Fix param names | Jack Lloyd | 2019-05-10 | 1 | -4/+4 |
| | |||||
* | Fix feature macro checks. | Jack Lloyd | 2019-04-26 | 1 | -2/+0 |
| | | | | Add a checker script. | ||||
* | Rename OS::get_processor_timestamp to OS::get_cpu_cycle_counter | Jack Lloyd | 2018-12-23 | 1 | -1/+1 |
| | | | | | Using phrase "timestamp" makes it sound like it has some relation to wall clock which it does not. | ||||
* | Test how long it takes to precompute base point multiples | Jack Lloyd | 2018-12-16 | 1 | -0/+20 |
| | |||||
* | Fix more MSVC warnings | Jack Lloyd | 2018-12-10 | 1 | -2/+2 |
| | |||||
* | Work around a problem when built with OpenSSL | Jack Lloyd | 2018-12-10 | 1 | -1/+8 |
| | | | | | | | It appears OpenSSL has a different interpretation from us of how the message representative is formed for P-521 when given a hash to sign that is larger than the group order; signatures generated by us do not verify with OpenSSL and vice versa. | ||||
* | Support recovering ECDSA public key from message/signature pair | Jack Lloyd | 2018-12-10 | 1 | -0/+51 |
| | | | | | | See http://www.secg.org/sec1-v2.pdf section 4.1.6 Closes #664 | ||||
* | In speed, track number of invalid generated signatures and print once | Jack Lloyd | 2018-12-08 | 1 | -1/+6 |
| | | | | Otherwise this spams the output when something goes wrong. | ||||
* | Add a constant time divide variant for dividing by uint8_t | Jack Lloyd | 2018-12-02 | 1 | -0/+43 |
| | | | | | | | | | Originally wrote it for div-by-word but that ends up requiring a dword type which we don't always have. And uint8_t covers the most important cases of n = 10 and n = 58 (whenever I get around to writing base58). We could portably support up to div-by-uint32, but I don't think we need it. Nicely for n = 10, this is actually faster than the variable time division. | ||||
* | Add a const-time division algorithm | Jack Lloyd | 2018-12-02 | 1 | -0/+45 |
| | | | | | | | | It is stupid and slow (~50-100x slower than variable time version) but still useful for protecting critical algorithms. Not currently used, waiting for OSS-Fuzz to test it for a while before we commit to it. | ||||
* | Fix more MSVC warnings | Jack Lloyd | 2018-10-01 | 1 | -1/+1 |
| | |||||
* | Merge GH #1670 New password hashing interface | Jack Lloyd | 2018-09-13 | 1 | -306/+18 |
|\ | |||||
| * | Add tests | Jack Lloyd | 2018-09-10 | 1 | -9/+12 |
| | | | | | | | | This is a contribution of Ribose Inc (@riboseinc) | ||||
| * | Promote Timer to an internal util class | Jack Lloyd | 2018-09-10 | 1 | -301/+10 |
| | | |||||
* | | Better error repoting for invalid/out of range --buf-size arg | Jack Lloyd | 2018-09-10 | 1 | -2/+7 |
| | | |||||
* | | Fix cipher mode speed benchmark ignoring provider argument | Jose Pereira | 2018-09-06 | 1 | -2/+2 |
|/ | |||||
* | In speed test, check for availability of NIST reducer functions | Jack Lloyd | 2018-08-15 | 1 | -0/+2 |
| | | | | This caused compilation to fail if MP_WORD_BITS was 8 or 16 | ||||
* | Improve speed of cli tests | Jack Lloyd | 2018-08-10 | 1 | -12/+23 |
| | | | | | Exit early from scrypt bench if we only computed a single value in the requested msec bounds. Reduce speed timeouts across board. | ||||
* | Add Lucas test from FIPS 186-4 | Jack Lloyd | 2018-07-31 | 1 | -0/+37 |
| | | | | | | | | | | This eliminates an issue identified in the paper "Prime and Prejudice: Primality Testing Under Adversarial Conditions" by Albrecht, Massimo, Paterson and Somorovsky where DL_Group::verify_group with strong=false would accept a composite q with probability 1/4096, which is exactly as the error bound is documented, but still unfortunate. | ||||
* | Update password hashing default settings | Jack Lloyd | 2018-07-13 | 1 | -0/+65 |
| | | | | | | | | Bcrypt work factor 10 is looking pretty low these days, as is 100K iterations of PBKDF2. Increase bcrypt to 12 and PBKDF2 to 150K, and also transition passhash9 to using SHA-512 instead of SHA-256. Also document bcrypt better, and add speed tests for bcrypt and passhash9 | ||||
* | In speed command warn if some unknown flag is passed to --clear-cpuid | Jack Lloyd | 2018-07-11 | 1 | -1/+7 |
| | |||||
* | More CLI tests | Jack Lloyd | 2018-06-28 | 1 | -2/+2 |
| | |||||
* | Avoid a small timing channel in Barrett reduction | Jack Lloyd | 2018-06-20 | 1 | -17/+19 |
| | | | | No known exploit for this but no point taking chances. | ||||
* | Benchmark only H10 XMSS signatures | Jack Lloyd | 2018-05-28 | 1 | -4/+4 |
| | |||||
* | Correct comment on XMSS speeds | Jack Lloyd | 2018-05-28 | 1 | -5/+9 |
| | | | | | Not sure where I got the hour+ figure from. This may have been true with the initial release. | ||||
* | Support scrypt for encrypting private keys | Jack Lloyd | 2018-05-22 | 1 | -2/+2 |
| | |||||
* | Test speed of different scrypt params | Jack Lloyd | 2018-05-22 | 1 | -10/+24 |
| | |||||
* | Tweak default `speed` targets | Jack Lloyd | 2018-05-21 | 1 | -8/+8 |
| | |||||
* | Add Scrypt key dervation function | Jack Lloyd | 2018-05-16 | 1 | -0/+32 |
| | |||||
* | Add 24-word wide Comba multiply/square | Jack Lloyd | 2018-05-08 | 1 | -1/+1 |
| | | | | | | Improves performance on "odd" sized DH/RSA (eg 1536, 3072, 6144) where otherwise the Karatsuba operation bottoms out with 24-word operands which ended up in the basecase multiply. | ||||
* | Add timing for ECC double and addition algorithms | Jack Lloyd | 2018-04-18 | 1 | -0/+33 |
| | |||||
* | Add cycle counter for NIST reduction | Jack Lloyd | 2018-04-18 | 1 | -0/+52 |
| |