Skip to content

Commit 0c866bb

Browse files
committed
Small fixes to config and alloc variables in Frobenius.
1 parent 763901e commit 0c866bb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

bench/bench_epx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,7 +2162,7 @@ int main(void) {
21622162

21632163
util_banner("Benchmarks for the EPX module:", 0);
21642164

2165-
if (ep_param_set_any_pairf() != RLC_OK) {
2165+
if (pc_param_set_any() != RLC_OK) {
21662166
RLC_THROW(ERR_NO_CURVE);
21672167
core_clean();
21682168
return 0;
@@ -2190,7 +2190,7 @@ int main(void) {
21902190
arith3();
21912191
}
21922192

2193-
if ((r2 = ep4_curve_is_twist())) {
2193+
if ((r2 = ep4_curve_is_twist() || ep4_curve_is_super())) {
21942194
ep_param_print();
21952195

21962196
util_banner("Utilities:", 1);

src/epx/relic_ep4_frb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
/*============================================================================*/
3838

3939
void ep4_frb(ep4_t r, const ep4_t p, int i) {
40-
fp4_t t, u;
4140
if (ep4_curve_is_twist()) {
4241
ep4_copy(r, p);
4342
for (; i > 0; i--) {

0 commit comments

Comments
 (0)