mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-04 20:03:40 +00:00
Merge pull request #177 from samscott89/hash-fix
Fix distribution of curve points for hashing to Ristretto points.
This commit is contained in:
commit
920bdb3279
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