mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 19:33:28 +01:00
ringct: changes to hashToPointSimple to calcualte H2 values
Ported from Shen's RingCT repo
This commit is contained in:
parent
63733b1785
commit
55ff136e12
@ -408,9 +408,14 @@ namespace rct {
|
|||||||
|
|
||||||
key hashToPointSimple(const key & hh) {
|
key hashToPointSimple(const key & hh) {
|
||||||
key pointk;
|
key pointk;
|
||||||
|
ge_p1p1 point2;
|
||||||
|
ge_p2 point;
|
||||||
ge_p3 res;
|
ge_p3 res;
|
||||||
key h = cn_fast_hash(hh);
|
key h = cn_fast_hash(hh);
|
||||||
ge_frombytes_vartime(&res, h.bytes);
|
ge_frombytes_vartime(&res, h.bytes);
|
||||||
|
ge_p3_to_p2(&point, &res);
|
||||||
|
ge_mul8(&point2, &point);
|
||||||
|
ge_p1p1_to_p3(&res, &point2);
|
||||||
ge_p3_tobytes(pointk.bytes, &res);
|
ge_p3_tobytes(pointk.bytes, &res);
|
||||||
return pointk;
|
return pointk;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user