Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Provide bn_mod_sqr_words() and call it from ec_field_element_sqr(). | jsing | 2025-08-02 | 1 | -2/+2 |
| | | | | | For now this still calls bn_montgomery_multiply_words(), however it can be optimised further in the future. | ||||
* | Provide constant time conditional selection between EC_FIELD_ELEMENTs. | jsing | 2025-08-02 | 1 | -1/+14 |
| | | | | | | | | Provide a ec_field_element_select() function that allows for constant time conditional selection between two EC_FIELD_ELEMENTs. This will become a building block for constant time point multiplication. ok tb@ | ||||
* | Implement EC field element operations. | jsing | 2025-05-25 | 1 | -0/+189 |
Provide EC_FIELD_ELEMENT and EC_FIELD_MODULUS, which allow for operations on fixed width fields in constant time. These can in turn be used to implement Elliptic Curve cryptography for prime fields, without needing to use BN. This will improve the code, reduces timing leaks and enable further optimisation. ok beck@ tb@ |