File tree 1 file changed +6
-0
lines changed
elliptic-curve/src/hash2curve
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 3
3
use super :: { ExpandMsg , FromOkm , MapToCurve , hash_to_field} ;
4
4
use crate :: { CurveArithmetic , ProjectivePoint , Result } ;
5
5
use group:: cofactor:: CofactorGroup ;
6
+ use hybrid_array:: ArraySize ;
6
7
7
8
/// Adds hashing arbitrary byte sequences to a valid group element
8
9
pub trait GroupDigest : CurveArithmetic
12
13
/// The field element representation for a group value with multiple elements
13
14
type FieldElement : FromOkm + MapToCurve < Output = ProjectivePoint < Self > > + Default + Copy ;
14
15
16
+ /// The target security level in bits:
17
+ /// <https://www.rfc-editor.org/rfc/rfc9380.html#section-8.9-2.2>
18
+ /// <https://www.rfc-editor.org/rfc/rfc9380.html#name-target-security-levels>
19
+ type K : ArraySize ;
20
+
15
21
/// Computes the hash to curve routine.
16
22
///
17
23
/// From <https://www.ietf.org/archive/id/draft-irtf-cfrg-hash-to-curve-13.html>:
You can’t perform that action at this time.
0 commit comments