Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Verify decoded length of GOST public keys | Jack Lloyd | 2021-06-10 | 1 | -0/+3 |
| | | | | | | | | This format is fixed length, so verify that. Caught by OSS-Fuzz where UbSan noticed that if the decoded array was empty we would use &bits[0] of an empty vector. OSS-Fuzz 35123 | ||||
* | Remove dead function declarations | Jack Lloyd | 2021-06-07 | 1 | -8/+2 |
| | |||||
* | Small cleanups in EMSA1 | Jack Lloyd | 2021-06-07 | 1 | -10/+12 |
| | |||||
* | FIX: export RSA pubkey via PKCS #11 w/o accessing sensitive data | René Meusel | 2021-06-07 | 1 | -7/+3 |
| | |||||
* | Move Roughttime test data | Jack Lloyd | 2021-06-01 | 4 | -3/+3 |
| | |||||
* | Move codec tests and data | Jack Lloyd | 2021-06-01 | 6 | -264/+275 |
| | |||||
* | Small test fixes | Jack Lloyd | 2021-05-30 | 4 | -12/+12 |
| | |||||
* | In tests check for required keys | Jack Lloyd | 2021-05-30 | 11 | -11/+19 |
| | | | | | Correct various cases where tests were indicated to require keys which were actually optional or in a few cases not even used within the test. | ||||
* | Split EMSA_PKCS1v15_Raw constructors | Jack Lloyd | 2021-05-29 | 2 | -14/+15 |
| | |||||
* | Skip negative test in ECDSA | Jack Lloyd | 2021-05-29 | 2 | -1/+20 |
| | | | | | Since it cannot occur because we decoded from binary within the same function. | ||||
* | Fix an ECKCDSA bug | Jack Lloyd | 2021-05-24 | 4 | -21/+77 |
| | | | | | | Add some more test vectors (taken from https://github.com/ANSSI-FR/libecc) and fix a bug which occured when either the group was not an even multiple of 8 bits, or when the x,y coordinates had any leading zero bytes. | ||||
* | Revamp x86 CPUID | Jack Lloyd | 2021-05-24 | 1 | -8/+7 |
| | | | | | | | | | Use the GCC intrinsics for gcc or clang Remove use of _cpuidex for Intel C++ since it seems to be missing in at least some situations (GH #2748) Allow using the inline asm on x86-32 or x32 modes | ||||
* | Prevent using non-sensical padding schemes | Jack Lloyd | 2021-05-22 | 11 | -8/+43 |
| | | | | | Most padding schemes require message recovery, which, now that NR and RW have both been removed, limits their usage to RSA. | ||||
* | Fix cast for ICC cpuid (GH #2748) | Jack Lloyd | 2021-05-21 | 1 | -4/+1 |
| | |||||
* | Fix a compilation problem with ICC (GH #2748) | Jack Lloyd | 2021-05-21 | 1 | -6/+1 |
| | |||||
* | Derive Cipher_Mode::authenticated via tag_size | Jack Lloyd | 2021-05-20 | 2 | -3/+1 |
| | |||||
* | Merge GH #2747 Remove OpenMP support | Jack Lloyd | 2021-05-20 | 4 | -11/+1 |
|\ | |||||
| * | Remove OpenMP support | Jack Lloyd | 2021-05-19 | 4 | -11/+1 |
| | | |||||
* | | Revert use of new safegcd bounds function | Jack Lloyd | 2021-05-19 | 2 | -5/+5 |
| | | | | | | | | | | OSS-Fuzz found a case where we didn't reach g == 0 at the end of the loop, which would cause an assert | ||||
* | | Add missing limits include | Jack Lloyd | 2021-05-19 | 1 | -0/+1 |
|/ | |||||
* | Test gcd in both directions | Jack Lloyd | 2021-05-19 | 1 | -2/+4 |
| | |||||
* | Add gcd results to speed cli | Jack Lloyd | 2021-05-19 | 1 | -2/+6 |
| | |||||
* | When a test fails dump all of the keys | Jack Lloyd | 2021-05-19 | 1 | -3/+9 |
| | | | | Makes debugging a bit easier | ||||
* | DES doesn't use BMI2 anymore | Jack Lloyd | 2021-05-19 | 1 | -2/+0 |
| | |||||
* | Fix name constraint application | Jack Lloyd | 2021-05-08 | 5 | -6/+135 |
| | | | | | | | A name constraint on an intermediate certificate should not constraint the intermediate itself, but only the subordinate certificates. Fixes GH #2737 | ||||
* | Name constraint fixes | Jack Lloyd | 2021-05-08 | 9 | -9/+236 |
| | | | | | | | | | | | | Do not require name constraint extension to be critical. It is certainly a bad idea to issue non-critical name constraints, but it seems some CAs do use them in practice, and also most other implementations seem to accept such non-critical extensions. Fix name constraint DNS comparisons: previously these were case sensitive, which is wrong for DNS. GH #2735 and #2736 | ||||
* | Avoid early return from mem_pool fuzzer | Jack Lloyd | 2021-05-05 | 1 | -3/+1 |
| | |||||
* | Remove redundant code | Jack Lloyd | 2021-05-05 | 1 | -39/+22 |
| | | | | Multiple returns of the same type in this header | ||||
* | Merge GH #2734 Some MP header cleanups | Jack Lloyd | 2021-05-02 | 14 | -260/+186 |
|\ | |||||
| * | Avoid LGTM warning | Jack Lloyd | 2021-05-01 | 1 | -1/+3 |
| | | |||||
| * | Use bigint_sub3 here instead of word_sub | Jack Lloyd | 2021-05-01 | 1 | -5/+1 |
| | | |||||
| * | Disable word_sub bypass for unrolled Montgomery redc | Jack Lloyd | 2021-05-01 | 2 | -25/+4 |
| | | |||||
| * | More mp header cleanups | Jack Lloyd | 2021-05-01 | 11 | -79/+50 |
| | | |||||
| * | Consolidate mp_madd.h into mp_asmi.h | Jack Lloyd | 2021-05-01 | 5 | -151/+129 |
| | | |||||
* | | Merge GH #2733 Change CT::copy_output semantics | Jack Lloyd | 2021-05-02 | 3 | -23/+92 |
|\ \ | |||||
| * | | Change CT::copy_output semantics | Jack Lloyd | 2021-04-29 | 3 | -23/+92 |
| |/ | | | | | | | | | | | Now if the flag is bad we always return an empty vector Add explicit tests for CT::copy_output | ||||
* | | Merge GH #2731 Fix sstream formatting issues (see #2730) | Jack Lloyd | 2021-05-02 | 7 | -26/+67 |
|\ \ | |/ |/| | |||||
| * | Add a test of OID::to_string | Jack Lloyd | 2021-04-27 | 1 | -0/+36 |
| | | | | | | | | | | This is our canary in the coalmine for std::to_string respecting locale | ||||
| * | Fix sstream usage | Jack Lloyd | 2021-04-27 | 6 | -26/+31 |
| | | |||||
* | | Test both issuer and subject DNs for RDN SET test | Jack Lloyd | 2021-04-28 | 1 | -1/+3 |
|/ | |||||
* | Fix #2237 forcing OID::to_string to use C locale, avoiding thousand ↵ | Leonardo Backes Vargas | 2021-04-26 | 1 | -0/+1 |
| | | | | separators from the process locale. | ||||
* | Merge GH #2726 Add support for IRTF hash to curve | Jack Lloyd | 2021-04-25 | 15 | -5/+739 |
|\ | |||||
| * | Implement draft-irtf-cfrg-hash-to-curve | Jack Lloyd | 2021-04-25 | 15 | -5/+739 |
| | | | | | | | | | | | | | | Specifically SSWU with xmd based expansion Currently only P-256, P-384 and P-521 are supported but in principle this could be extended to most curves except those with A*B == 0 | ||||
* | | Merge GH #2725 Modify BigInt constructors | Jack Lloyd | 2021-04-25 | 37 | -145/+218 |
|\ \ | |||||
| * | | Modify BigInt constructors | Jack Lloyd | 2021-04-24 | 37 | -145/+218 |
| |/ | | | | | | | | | | | | | | | | | Add static methods for very common (eg zero, one) or very uncommon (eg ECSDA truncated integers) construction methods, instead of using C++ constructors for all of these. Also adds from_s32 which allows creating a negative BigInt easily, instead of -BigInt(-x) -> BigInt::from_s32(x) | ||||
* / | Clean up some visibility issues | Jack Lloyd | 2021-04-25 | 4 | -31/+31 |
|/ | |||||
* | Merge GH #2722 In RSA keygen require p, q differ by large range | Jack Lloyd | 2021-04-24 | 1 | -4/+13 |
|\ | |||||
| * | Don't loop forever if the RSA keygen rng is bad | Jack Lloyd | 2021-04-21 | 1 | -1/+4 |
| | | |||||
| * | In RSA keygen require that p and q differ by a wide range | Jack Lloyd | 2021-04-21 | 1 | -4/+10 |
| | | | | | | | | This is required by FIPS 186-4 sec B.3.2 | ||||
* | | Allow disabling the thread pool at runtime via env variable | Jack Lloyd | 2021-04-21 | 2 | -10/+56 |
|/ | | | | | | Currently this requires a manual reconfigure and recompilation. Not a complete fix for GH #2608 but at least a more convenient workaround. |