Commit graph

8 commits

Author SHA1 Message Date
bunnie
63a24a80b6 add sw fallback for montgomery routines 2024-03-25 13:42:31 +08:00
bunnie
80fded7589 add functions to allow low-level access from outside the crate
and also make the internal functions use the same conventions
2024-03-11 18:44:17 +08:00
bunnie
4c58a5166f cleanup to refer to local job primitives 2024-03-11 18:15:19 +08:00
David Kotval
7bf60e4a2b wip: trying to get unifying version 2024-02-18 16:44:04 -06:00
David Kotval
81f9189d2f wip: remove betrusted feature 2024-01-12 02:10:08 +00:00
David Kotval
55c5a33411 Merge remote-tracking branch 'upstream/main' into update_to_v4 2023-12-13 17:45:20 -06:00
Michael Rosenberg
8e0cef5b72
curve: Add arbitrary integer multiplication with MontgomeryPoint::mul_bits_be (#555)
There is occasionally [a need](https://github.com/dalek-cryptography/curve25519-dalek/pull/519#issuecomment-1637770888) to multiply a non-prime-order Montgomery point by an integer. There's currently no way to do this, since our only methods are multiplication by `Scalar` (doesn't make sense in the non-prime-order case), and `MontgomeryPoint::mul_base_clamped` clamps the integer before multiplying.

This defines `MontgomeryPoint::mul_bits_be`, which takes a big-endian representation of an integer and multiplies the point by that integer. Its usage is not recommended by default, but it is also not so unsafe as to be gated behind a `hazmat` feature.
2023-08-28 01:58:41 -04:00
pinkforest
40cf5aff99
Workspace curve25519 under curve25519-dalek 2023-06-27 04:00:12 +00:00
Renamed from src/montgomery.rs (Browse further)