From d43eef6def9b1ae06c2f9f12eb5a141cfc22f7c8 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 21 Nov 2017 14:13:20 +0000 Subject: ringct: add a version of addKeys which returns the result --- src/ringct/rctOps.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ringct/rctOps.h') diff --git a/src/ringct/rctOps.h b/src/ringct/rctOps.h index 412450c18..1ff2e257b 100644 --- a/src/ringct/rctOps.h +++ b/src/ringct/rctOps.h @@ -123,6 +123,7 @@ namespace rct { //for curve points: AB = A + B void addKeys(key &AB, const key &A, const key &B); + rct::key addKeys(const key &A, const key &B); //aGB = aG + B where a is a scalar, G is the basepoint, and B is a point void addKeys1(key &aGB, const key &a, const key & B); //aGbB = aG + bB where a, b are scalars, G is the basepoint and B is a point -- cgit v1.2.3 From ada4291469156f76eb605b2110a068df58a4e142 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 21 Nov 2017 22:55:57 +0000 Subject: add a version of ge_double_scalarmult_precomp_vartime with A precomp --- src/ringct/rctOps.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ringct/rctOps.h') diff --git a/src/ringct/rctOps.h b/src/ringct/rctOps.h index 1ff2e257b..3f8f6955c 100644 --- a/src/ringct/rctOps.h +++ b/src/ringct/rctOps.h @@ -134,6 +134,7 @@ namespace rct { //aAbB = a*A + b*B where a, b are scalars, A, B are curve points //B must be input after applying "precomp" void addKeys3(key &aAbB, const key &a, const key &A, const key &b, const ge_dsmp B); + void addKeys3(key &aAbB, const key &a, const ge_dsmp A, const key &b, const ge_dsmp B); //AB = A - B where A, B are curve points void subKeys(key &AB, const key &A, const key &B); //checks if A, B are equal as curve points -- cgit v1.2.3