From 184bfd7331d3910ac869e503a4a64f85120ff4a9 Mon Sep 17 00:00:00 2001 From: "Diego F. Aranha" Date: Sat, 30 Mar 2024 20:54:48 +0100 Subject: [PATCH] Change API for general scalar mult to newer one. --- src/ep/relic_ep_mul_cof.c | 2 +- src/epx/relic_ep2_mul_cof.c | 2 +- src/epx/relic_ep3_mul_cof.c | 2 +- src/epx/relic_ep4_mul_cof.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ep/relic_ep_mul_cof.c b/src/ep/relic_ep_mul_cof.c index e80b3b861..2101f6ece 100644 --- a/src/ep/relic_ep_mul_cof.c +++ b/src/ep/relic_ep_mul_cof.c @@ -149,7 +149,7 @@ void ep_mul_cof(ep_t r, const ep_t p) { default: /* multiply by cofactor to get the correct group. */ ep_curve_get_cof(k); - ep_mul_basic(r, p, k); + ep_mul_big(r, p, k); } } RLC_CATCH_ANY { RLC_THROW(ERR_CAUGHT); diff --git a/src/epx/relic_ep2_mul_cof.c b/src/epx/relic_ep2_mul_cof.c index 505e77860..64f54df20 100644 --- a/src/epx/relic_ep2_mul_cof.c +++ b/src/epx/relic_ep2_mul_cof.c @@ -165,7 +165,7 @@ void ep2_mul_cof(ep2_t r, const ep2_t p) { default: /* Now, multiply by cofactor to get the correct group. */ ep2_curve_get_cof(k); - ep2_mul_basic(r, p, k); + ep2_mul_big(r, p, k); break; } } RLC_CATCH_ANY { diff --git a/src/epx/relic_ep3_mul_cof.c b/src/epx/relic_ep3_mul_cof.c index 3c3711ca8..cd3bc1909 100644 --- a/src/epx/relic_ep3_mul_cof.c +++ b/src/epx/relic_ep3_mul_cof.c @@ -317,7 +317,7 @@ void ep3_mul_cof(ep3_t r, const ep3_t p) { default: /* Now, multiply by cofactor to get the correct group. */ ep3_curve_get_cof(k); - ep3_mul_basic(r, p, k); + ep3_mul_big(r, p, k); break; } } RLC_CATCH_ANY { diff --git a/src/epx/relic_ep4_mul_cof.c b/src/epx/relic_ep4_mul_cof.c index b79aa17b6..31fa4a6af 100644 --- a/src/epx/relic_ep4_mul_cof.c +++ b/src/epx/relic_ep4_mul_cof.c @@ -369,7 +369,7 @@ void ep4_mul_cof(ep4_t r, const ep4_t p) { default: /* Now, multiply by cofactor to get the correct group. */ ep4_curve_get_cof(k); - ep4_mul_basic(r, p, k); + ep4_mul_big(r, p, k); break; } } RLC_CATCH_ANY {