You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Break long lines in comments and tests and fix some hardcoded bit sizes
- Fix the hardcoded `Limb` size in `inv_odd_mod()` - was set to 64 (did not
cause errors, just made the inversion twice as slow on 32-bit targets)
- Added `inv_odd_mod_bounded()` for cases of argument/modulus known to be small
- Removed `inv_odd_mod_option()` - we do not provide such interface for other
constant functions
Additionally:
- Introduced a `CtChoice` newtype for constant-time const fns
- Replaced some multiplications by `Word::MAX` with negations
- Normalized constant-time comparisons API in `Limb` and `Uint`: removed
`ct_cmp()` (we never need it in constant-time context,
`ct_gt()`/`ct_lt()`/`ct_eq()` are enough), matched const fns with `subtle`
trait methods, matched methods between `Limb` and `Uint`
- Removed `SignedWord` and `SignedWideWord`
- `Uint` objects are taken by reference where previously taken by value.
0 commit comments