mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Fix distribution of curve points for hashing to Ristretto points.
This commit is contained in:
parent
d3310837b8
commit
a1e2c83d31
1 changed files with 1 additions and 1 deletions
|
|
@ -646,7 +646,7 @@ impl RistrettoPoint {
|
|||
let R_1 = RistrettoPoint::elligator_ristretto_flavor(&r_1);
|
||||
|
||||
let mut r_2_bytes = [0u8; 32];
|
||||
r_2_bytes.copy_from_slice(&output.as_slice()[0..32]);
|
||||
r_2_bytes.copy_from_slice(&output.as_slice()[32..64]);
|
||||
let r_2 = FieldElement::from_bytes(&r_2_bytes);
|
||||
let R_2 = RistrettoPoint::elligator_ristretto_flavor(&r_2);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue