curve25519-dalek-source/src
Michael Rosenberg f460ae149b
Make scalars always reduced (#519)
* Removed Scalar::{from_bits, from_bytes_clamped}; all constructible scalars are now reduced mod l

* Made Scalar::reduce() not pub; fixed test warning

* Added benches for scalar add/sub/mul

* Docs

* Added EdwardsPoint::mul_base_clamped and gated Scalar::from_bits behind legacy_compatibility

* Added unit test for Mul impl on unreduced Scalars

* Added Montgomery::mul_base_clamped

* Added BasepointTable::mul_base_clamped

* Removed invalid scalar arithmetic test; this functionality is no longer supported

* Made clamp_integer() const

* Updated readme and changelog

* Added BasepointTable::mul_base_clamped to tests

* Added proper deprecation notice to Scalar::from_bits; added legacy_compatibility to Makefile and docsrs flags
2023-03-28 18:12:24 -04:00
..
backend Make scalars always reduced (#519) 2023-03-28 18:12:24 -04:00
constants.rs Rename basepoint-tables to precomputed-tables (#499) 2023-01-19 14:04:22 -05:00
edwards.rs Make scalars always reduced (#519) 2023-03-28 18:12:24 -04:00
field.rs Use inherent constants for ZERO, ONE, and MINUS_ONE (#470) 2022-12-12 01:04:42 -05:00
lib.rs Re-export commonly used types from toplevel (#502) 2023-01-29 13:53:43 -05:00
macros.rs cargo fmt 2022-10-28 17:00:24 -04:00
montgomery.rs Make scalars always reduced (#519) 2023-03-28 18:12:24 -04:00
ristretto.rs Use ok_or_else instead of ok_or in serde decoding (#382) 2023-03-13 21:42:01 -06:00
scalar.rs Make scalars always reduced (#519) 2023-03-28 18:12:24 -04:00
traits.rs Make scalars always reduced (#519) 2023-03-28 18:12:24 -04:00
window.rs Feature-gated more precomputed tables (#500) 2023-01-20 10:55:32 -07:00