curve25519-dalek-source/curve25519-dalek/src
Iñigo Querejeta Azurmendi 015707ab4e
Add proper hash_to_curve. (#786)
* Rename hash_to_curve as encode_to_curve

* Implement the inline description of the standard.

* Generalise map_to_field to return an arbitrary number of field elements.

* Implement hash_to_curve as defined in the standard.

* Put elligator behind the "digest" feature.

* Add warning on non-uniformity of `encode_to_curve`.

* Remove the need of Vec for hash_to_field.

* Apply suggestions from code review

* Refactor expand_message_xmd out of hash_to_field

* Add hash-to-curve to benches

* Constraint COUNT to 1 or 2; add note on secure hash function usage

* Correct hash function usage in encode- and hash-to-curve

---------

Co-authored-by: Armando Faz <armfazh@users.noreply.github.com>
Co-authored-by: Michael Rosenberg <mrosenberg@cloudflare.com>
2025-08-26 20:51:39 +02:00
..
backend Add proper hash_to_curve. (#786) 2025-08-26 20:51:39 +02:00
edwards Bump edition to 2024 and crate versions to prereleases (#775) 2025-07-07 11:52:25 -04:00
constants.rs curve,x: Clear deprecated functions (#778) 2025-07-07 22:33:05 +02:00
diagnostics.rs chore: fix spelling issues (#727) 2025-01-18 16:34:18 -07:00
edwards.rs Add proper hash_to_curve. (#786) 2025-08-26 20:51:39 +02:00
field.rs Add proper hash_to_curve. (#786) 2025-08-26 20:51:39 +02:00
lib.rs curve: fix nightly build (#773) 2025-06-15 12:56:10 -04:00
macros.rs Workspace curve25519 under curve25519-dalek 2023-06-27 04:00:12 +00:00
montgomery.rs Add proper hash_to_curve. (#786) 2025-08-26 20:51:39 +02:00
ristretto.rs Scalar::div_by_2 (#805) 2025-08-22 20:45:51 +02:00
scalar.rs Scalar::div_by_2 (#805) 2025-08-22 20:45:51 +02:00
traits.rs Bump edition to 2024 and crate versions to prereleases (#775) 2025-07-07 11:52:25 -04:00
window.rs Address new nightly clippy unnecessary qualifications (#639) 2024-03-07 16:58:20 -07:00