File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -353,12 +353,12 @@ mod tests {
353
353
354
354
for test_vector in TEST_VECTORS {
355
355
// in parts
356
- let mut u = [ FieldElement :: default ( ) , FieldElement :: default ( ) ] ;
357
- hash2curve :: hash_to_field :: <
356
+ let u = hash2curve :: hash_to_field :: <
357
+ 2 ,
358
358
ExpandMsgXmd < Sha256 > ,
359
359
<Secp256k1 as GroupDigest >:: K ,
360
360
FieldElement ,
361
- > ( & [ test_vector. msg ] , & [ DST ] , & mut u )
361
+ > ( & [ test_vector. msg ] , & [ DST ] )
362
362
. unwrap ( ) ;
363
363
assert_eq ! ( u[ 0 ] . to_bytes( ) . as_slice( ) , test_vector. u_0) ;
364
364
assert_eq ! ( u[ 1 ] . to_bytes( ) . as_slice( ) , test_vector. u_1) ;
Original file line number Diff line number Diff line change @@ -204,12 +204,12 @@ mod tests {
204
204
205
205
for test_vector in TEST_VECTORS {
206
206
// in parts
207
- let mut u = [ FieldElement :: default ( ) , FieldElement :: default ( ) ] ;
208
- hash2curve :: hash_to_field :: <
207
+ let u = hash2curve :: hash_to_field :: <
208
+ 2 ,
209
209
ExpandMsgXmd < Sha256 > ,
210
210
<NistP256 as GroupDigest >:: K ,
211
211
FieldElement ,
212
- > ( & [ test_vector. msg ] , & [ DST ] , & mut u )
212
+ > ( & [ test_vector. msg ] , & [ DST ] )
213
213
. unwrap ( ) ;
214
214
215
215
/// Assert that the provided projective point matches the given test vector.
Original file line number Diff line number Diff line change @@ -209,12 +209,12 @@ mod tests {
209
209
210
210
for test_vector in TEST_VECTORS {
211
211
// in parts
212
- let mut u = [ FieldElement :: default ( ) , FieldElement :: default ( ) ] ;
213
- hash2curve :: hash_to_field :: <
212
+ let u = hash2curve :: hash_to_field :: <
213
+ 2 ,
214
214
ExpandMsgXmd < Sha384 > ,
215
215
<NistP384 as GroupDigest >:: K ,
216
216
FieldElement ,
217
- > ( & [ test_vector. msg ] , & [ DST ] , & mut u )
217
+ > ( & [ test_vector. msg ] , & [ DST ] )
218
218
. unwrap ( ) ;
219
219
220
220
/// Assert that the provided projective point matches the given test vector.
Original file line number Diff line number Diff line change @@ -212,12 +212,12 @@ mod tests {
212
212
213
213
for test_vector in TEST_VECTORS {
214
214
// in parts
215
- let mut u = [ FieldElement :: default ( ) , FieldElement :: default ( ) ] ;
216
- hash2curve :: hash_to_field :: <
215
+ let u = hash2curve :: hash_to_field :: <
216
+ 2 ,
217
217
ExpandMsgXmd < Sha512 > ,
218
218
<NistP521 as GroupDigest >:: K ,
219
219
FieldElement ,
220
- > ( & [ test_vector. msg ] , & [ DST ] , & mut u )
220
+ > ( & [ test_vector. msg ] , & [ DST ] )
221
221
. unwrap ( ) ;
222
222
223
223
/// Assert that the provided projective point matches the given test vector.
You can’t perform that action at this time.
0 commit comments