Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use GetProcessWorkingSetSize instead of GetProcessWorkingSetSizeEx | Jack Lloyd | 2018-02-23 | 1 | -2/+1 |
| | | | | | The Ex variant is not available in older Wine (including the version in Trusty) and GetProcessWorkingSetSize is sufficient. | ||||
* | Add DL_Group::estimated_strength | Jack Lloyd | 2018-02-23 | 3 | -4/+20 |
| | |||||
* | Add EC_Group::verify_public_element | Jack Lloyd | 2018-02-23 | 3 | -28/+33 |
| | |||||
* | Add DL_Group functions to verify elements | Jack Lloyd | 2018-02-23 | 3 | -31/+48 |
| | |||||
* | Simplify IDEA key schedule | Jack Lloyd | 2018-02-23 | 1 | -23/+28 |
| | |||||
* | Use 2-bit wide table in PointGFp multi_exponentiate | Jack Lloyd | 2018-02-23 | 2 | -17/+56 |
| | | | | ECDSA verification is 10-15% faster | ||||
* | Inline NIST normalize function, use bigint_sub3 | Jack Lloyd | 2018-02-23 | 1 | -12/+3 |
| | |||||
* | Minor optimizations in BigInt memory handling | Jack Lloyd | 2018-02-23 | 2 | -2/+4 |
| | | | | Makes 4-6% difference for ECDSA | ||||
* | Avoid unneeded grow_to calls | Jack Lloyd | 2018-02-23 | 1 | -1/+2 |
| | |||||
* | Small cleanups in NIST reduction code | Jack Lloyd | 2018-02-23 | 1 | -35/+22 |
| | |||||
* | Fix an error in BigInt operator- | Jack Lloyd | 2018-02-23 | 1 | -0/+1 |
| | | | | (x) - (-x) would result in -2x instead of the correct 2x | ||||
* | In PointGFp add/double avoid creating temporaries | Jack Lloyd | 2018-02-23 | 3 | -40/+60 |
| | | | | | | | We already had the temp workspace passed in but did not use it effectively... :/ Improves ECDSA sign and verify by 5-15% | ||||
* | Merge GH #1457 Use faster algorithm for ECC multiplication | Jack Lloyd | 2018-02-22 | 14 | -266/+399 |
|\ | |||||
| * | Move declarations that don't need to be friends of PointGFp | Jack Lloyd | 2018-02-21 | 1 | -21/+20 |
| | | |||||
| * | Small cleanup | Jack Lloyd | 2018-02-21 | 1 | -3/+8 |
| | | |||||
| * | Minimize header dependencies | Jack Lloyd | 2018-02-21 | 1 | -1/+2 |
| | | |||||
| * | Expose EC_Group::a_is_minus_3 | Jack Lloyd | 2018-02-21 | 2 | -1/+15 |
| | | |||||
| * | Use a table in multi_exponentiate | Jack Lloyd | 2018-02-21 | 1 | -13/+13 |
| | | |||||
| * | Remove the randomized Montgomery point mul code | Jack Lloyd | 2018-02-21 | 2 | -61/+2 |
| | | |||||
| * | Remove mutable worksspace from PointGFp | Jack Lloyd | 2018-02-21 | 3 | -100/+89 |
| | | | | | | | | Was not thread safe, big problem now that we share elements in EC_Group | ||||
| * | New API for blinded ECC point multiplication | Jack Lloyd | 2018-02-21 | 14 | -148/+332 |
| | | | | | | | | No shared state | ||||
* | | Fix incorrect check in DL key check | Jack Lloyd | 2018-02-22 | 1 | -6/+3 |
| | | | | | | | | get_q returns zero instead of throwing if q is not set | ||||
* | | Remove unused include [ci skip] | Jack Lloyd | 2018-02-22 | 1 | -1/+0 |
|/ | |||||
* | Improve exception message in DSA group generation when seed is short | Jack Lloyd | 2018-02-20 | 1 | -1/+1 |
| | |||||
* | Add some additional error checking to DL_Group | Jack Lloyd | 2018-02-20 | 1 | -0/+6 |
| | |||||
* | Fix validation of SRP groups | Jack Lloyd | 2018-02-19 | 2 | -12/+24 |
| | | | | | For whatever reason in the SRP groups g generates the group mod p rather than the subgroup of size q. | ||||
* | Remove PK_Ops::Decryption_with_EME::max_raw_input_bits | Jack Lloyd | 2018-02-19 | 3 | -5/+0 |
| | | | | | Unused and not exposed to higher levels. RSA and ElGamal both check their inputs vs the system parameters (n, p) after decoding. | ||||
* | Merge GH #1454 Used shared_ptr repr for DL_Group | Jack Lloyd | 2018-02-19 | 19 | -912/+845 |
|\ | |||||
| * | Small fixes | Jack Lloyd | 2018-02-19 | 7 | -23/+31 |
| | | |||||
| * | Use new DL_Group functions | Jack Lloyd | 2018-02-19 | 6 | -86/+93 |
| | | |||||
| * | Add shared_ptr for DL_Group state | Jack Lloyd | 2018-02-19 | 3 | -691/+510 |
| | | | | | | | | Add precomputations for mod-p math and g^x%p calcualations. | ||||
| * | Add consts | Jack Lloyd | 2018-02-19 | 1 | -3/+3 |
| | | |||||
| * | Split out Montgomery exponentation state | Jack Lloyd | 2018-02-19 | 5 | -112/+204 |
| | | | | | | | | | | The existing Power_Mod classes are not thread safe so can't be used in shared contexts. | ||||
| * | Minor optimizations for BigInt operator/ | Jack Lloyd | 2018-02-19 | 1 | -0/+6 |
| | | | | | | | | Detect divisions by small powers of 2 | ||||
| * | Move allocator initializer RAII class to mem_ops.h | Jack Lloyd | 2018-02-19 | 2 | -5/+6 |
| | | | | | | | | May be needed elsewhere | ||||
* | | Add missing overrides [ci skip] | Jack Lloyd | 2018-02-19 | 1 | -1/+1 |
| | | |||||
* | | Merge GH #1448 Support custom curves in TLS handshake | Jack Lloyd | 2018-02-19 | 17 | -337/+273 |
|\ \ | |/ |/| | |||||
| * | Fix server use of EC point format extension | Jack Lloyd | 2018-02-13 | 1 | -1/+1 |
| | | | | | | | | | | In the resumption case it would use that extension for any ECC ciphersuite, but is only allowed to do so if the client sent the extension. | ||||
| * | Remove house curve support | Jack Lloyd | 2018-02-13 | 4 | -22/+0 |
| | | |||||
| * | Add a test of TLS handshake with custom curve (secp112r1 in this case) | Jack Lloyd | 2018-02-13 | 1 | -4/+21 |
| | | |||||
| * | Add callback for decoding TLS group params | Jack Lloyd | 2018-02-13 | 4 | -3/+20 |
| | | |||||
| * | Remove cruft | Jack Lloyd | 2018-02-13 | 4 | -114/+16 |
| | | |||||
| * | Use enums for TLS key exchange group params | Jack Lloyd | 2018-02-13 | 12 | -224/+246 |
| | | |||||
* | | Further simplifications in SM2 code | Jack Lloyd | 2018-02-18 | 2 | -14/+14 |
| | | |||||
* | | Add point_multiply operation to EC_Group | Jack Lloyd | 2018-02-18 | 7 | -6/+19 |
| | | | | | | | | Allows precomputations in the future. | ||||
* | | Add functions to reduce integers mod the order to EC_Group | Jack Lloyd | 2018-02-18 | 7 | -162/+196 |
| | | | | | | | | | | | | This allows calculating the Barett reduction params just once, when the group is initialized, then sharing them across all operations which use that group. | ||||
* | | Tighten up RSA key validity tests | Jack Lloyd | 2018-02-13 | 1 | -3/+7 |
| | | | | | | | | They allowed even e, another leftover from Rabin-Williams | ||||
* | | Remove handling of even e in RSA keygen | Jack Lloyd | 2018-02-13 | 1 | -5/+2 |
| | | | | | | | | | | This is a holdover from Rabin-Williams support and just confusing in RSA-specific code. | ||||
* | | Of course they are public member variables, not functions ... | Jack Lloyd | 2018-02-13 | 4 | -4/+4 |
| | | |||||
* | | Add BOTAN_DEPRECATED_PUBLIC_MEMBER_FUNCTIONS | Jack Lloyd | 2018-02-13 | 4 | -1/+4 |
|/ | | | | | | Makes such things easier to find in the future. Also adds BOTAN_NO_DEPRECATED which causes them to be private instead. |