@@ -8,7 +8,7 @@ pub trait GroupDigest: MapToCurve {
88 /// The target security level in bytes:
99 /// <https://www.rfc-editor.org/rfc/rfc9380.html#section-8.9-2.2>
1010 /// <https://www.rfc-editor.org/rfc/rfc9380.html#name-target-security-levels>
11- type K : Unsigned ;
11+ type SecurityLevel : Unsigned ;
1212
1313 /// Computes the hash to curve routine.
1414 ///
@@ -33,7 +33,7 @@ pub trait GroupDigest: MapToCurve {
3333 /// [`ExpandMsgXofError`]: crate::ExpandMsgXofError
3434 fn hash_from_bytes < X > ( msg : & [ & [ u8 ] ] , dst : & [ & [ u8 ] ] ) -> Result < ProjectivePoint < Self > , X :: Error >
3535 where
36- X : ExpandMsg < Self :: K > ,
36+ X : ExpandMsg < Self :: SecurityLevel > ,
3737 {
3838 let [ u0, u1] = hash_to_field :: < 2 , X , _ , Self :: FieldElement > ( msg, dst) ?;
3939 let q0 = Self :: map_to_curve ( u0) ;
@@ -63,7 +63,7 @@ pub trait GroupDigest: MapToCurve {
6363 /// [`ExpandMsgXofError`]: crate::ExpandMsgXofError
6464 fn encode_from_bytes < X > ( msg : & [ & [ u8 ] ] , dst : & [ & [ u8 ] ] ) -> Result < ProjectivePoint < Self > , X :: Error >
6565 where
66- X : ExpandMsg < Self :: K > ,
66+ X : ExpandMsg < Self :: SecurityLevel > ,
6767 {
6868 let [ u] = hash_to_field :: < 1 , X , _ , Self :: FieldElement > ( msg, dst) ?;
6969 let q0 = Self :: map_to_curve ( u) ;
@@ -86,7 +86,7 @@ pub trait GroupDigest: MapToCurve {
8686 /// [`ExpandMsgXofError`]: crate::ExpandMsgXofError
8787 fn hash_to_scalar < X > ( msg : & [ & [ u8 ] ] , dst : & [ & [ u8 ] ] ) -> Result < Self :: Scalar , X :: Error >
8888 where
89- X : ExpandMsg < Self :: K > ,
89+ X : ExpandMsg < Self :: SecurityLevel > ,
9090 {
9191 let [ u] = hash_to_field :: < 1 , X , _ , Self :: Scalar > ( msg, dst) ?;
9292 Ok ( u)
0 commit comments