File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11//! Traits for hashing byte sequences to curve points.
22//!
3- //! <https://datatracker.ietf .org/doc/draft-irtf-cfrg-hash-to-curve >
3+ //! <https://www.rfc-editor .org/rfc/rfc9380.html >
44
55mod group_digest;
66mod hash2field;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pub trait GroupDigest: MapToCurve {
1313
1414 /// Computes the hash to curve routine.
1515 ///
16- /// From <https://www.ietf .org/archive/id/draft-irtf-cfrg-hash-to-curve-13 .html>:
16+ /// From <https://www.rfc-editor .org/rfc/rfc9380 .html>:
1717 ///
1818 /// > Uniform encoding from byte strings to points in G.
1919 /// > That is, the distribution of its output is statistically close
@@ -44,7 +44,7 @@ pub trait GroupDigest: MapToCurve {
4444
4545 /// Computes the encode to curve routine.
4646 ///
47- /// From <https://www.ietf .org/archive/id/draft-irtf-cfrg-hash-to-curve-13 .html>:
47+ /// From <https://www.rfc-editor .org/rfc/rfc9380 .html>:
4848 ///
4949 /// > Nonuniform encoding from byte strings to
5050 /// > points in G. That is, the distribution of its output is not
@@ -72,7 +72,7 @@ pub trait GroupDigest: MapToCurve {
7272 }
7373
7474 /// Computes the hash to field routine according to
75- /// <https://www.ietf .org/archive/id/draft-irtf-cfrg-hash-to-curve-13 .html#section-5>
75+ /// <https://www.rfc-editor .org/rfc/rfc9380 .html#section-5-4 >
7676 /// and returns a scalar.
7777 ///
7878 /// # Errors
Original file line number Diff line number Diff line change 11//! Traits for hashing to field elements.
22//!
3- //! <https://datatracker.ietf .org/doc/draft-irtf-cfrg-hash-to-curve >
3+ //! <https://www.rfc-editor .org/rfc/rfc9380.html >
44
55mod expand_msg;
66
@@ -25,7 +25,7 @@ pub trait FromOkm {
2525
2626/// Convert an arbitrary byte sequence into a field element.
2727///
28- /// <https://tools.ietf .org/html/draft-irtf-cfrg-hash-to-curve-11#section-5.3 >
28+ /// <https://www.rfc-editor .org/rfc/rfc9380.html#name-hash_to_field-implementatio >
2929///
3030/// # Errors
3131/// See implementors of [`ExpandMsg`] for errors:
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ pub trait Expander {
4646
4747/// The domain separation tag
4848///
49- /// Implements [section 5.4 .3 of `draft-irtf-cfrg-hash-to-curve-13` ][dst].
49+ /// Implements [section 5.3 .3 of RFC9380 ][dst].
5050///
51- /// [dst]: https://datatracker.ietf .org/doc/ html/draft-irtf-cfrg-hash-to-curve-13#section-5.4.3
51+ /// [dst]: https://www.rfc-editor .org/rfc/rfc9380. html#name-using-dsts-longer-than-255-
5252#[ derive( Debug ) ]
5353pub ( crate ) enum Domain < ' a , L >
5454where
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ where
3232 HashT : BlockSizeUser + Default + FixedOutput + HashMarker ,
3333 // If DST is larger than 255 bytes, the length of the computed DST will depend on the output
3434 // size of the hash, which is still not allowed to be larger than 255.
35- // https://www.ietf .org/archive/id/draft-irtf-cfrg-hash-to-curve-13 .html#section-5.4 .1-6
35+ // https://www.rfc-editor .org/rfc/rfc9380 .html#section-5.3 .1-6
3636 HashT :: OutputSize : IsLess < U256 , Output = True > ,
3737 // The number of bits output by `HashT` MUST be at most `HashT::BlockSize`.
38- // https://www.ietf .org/archive/id/draft-irtf-cfrg-hash-to-curve-13 .html#section-5.4 .1-4
38+ // https://www.rfc-editor .org/rfc/rfc9380 .html#section-5.3 .1-4
3939 HashT :: OutputSize : IsLessOrEqual < HashT :: BlockSize , Output = True > ,
4040 // The number of bits output by `HashT` MUST be at least `K * 2`.
4141 // https://www.rfc-editor.org/rfc/rfc9380.html#section-5.3.1-2.1
Original file line number Diff line number Diff line change 11//! Traits for mapping an isogeny to another curve
22//!
3- //! <https://datatracker.ietf .org/doc/draft-irtf-cfrg-hash-to-curve >
3+ //! <https://www.rfc-editor .org/rfc/rfc9380.html >
44
55use core:: ops:: { AddAssign , Mul } ;
66use ff:: Field ;
Original file line number Diff line number Diff line change 11//! Optimized simplified Shallue-van de Woestijne-Ulas methods.
22//!
3- //! <https ://www.ietf .org/archive/id/draft-irtf-cfrg-hash-to-curve-16 .html#straightline-sswu >
3+ //! <hhttps ://www.rfc-editor .org/rfc/rfc9380 .html#name-simplified-swu-method >
44
55use ff:: Field ;
66use subtle:: Choice ;
You can’t perform that action at this time.
0 commit comments