Skip to content

Commit 18a12ec

Browse files
committed
Fix naming issues.
1 parent 455d97a commit 18a12ec

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

include/relic_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ typedef struct _ctx_t {
232232
/** Value of constant one in Montgomery form. */
233233
bn_st one;
234234
#endif /* FP_RDC == MONTY */
235-
#if FP_INV == JUMPDS || !defined(STRIP)
235+
#if FP_INV == JMPDS || !defined(STRIP)
236236
/** Value of constant for divstep-based inversion. */
237237
bn_st inv;
238238
#endif /* FP_INV */

src/ep/relic_ep_param.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,6 +1847,7 @@ int ep_param_embed(void) {
18471847
case EP_K16:
18481848
return 16;
18491849
case EP_K18:
1850+
case EP_FM18:
18501851
case EP_SG18:
18511852
return 18;
18521853
case EP_B24:

src/fp/relic_fp_param.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ void fp_param_set(int param) {
440440
fp_prime_set_pairf(t0, EP_B12);
441441
break;
442442
#elif FP_PRIME == 508
443-
case K508:
443+
case K18_508:
444444
/* x = -(2^64 + 2^51 - 2^46 - 2^12). */
445445
bn_set_2b(t0, 64);
446446
bn_set_2b(t1, 51);

src/fp/relic_fp_prime.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static void fp_prime_set(const bn_t p) {
8383

8484
#endif /* FP_RDC == MONTY */
8585

86-
#if FP_INV == JUMPDS || !defined(STRIP)
86+
#if FP_INV == JMPDS || !defined(STRIP)
8787

8888
int d = (45907 * FP_PRIME + 26313) / 19929;
8989

@@ -243,7 +243,7 @@ void fp_prime_init(void) {
243243
bn_make(&(ctx->conv), RLC_FP_DIGS);
244244
bn_make(&(ctx->one), RLC_FP_DIGS);
245245
#endif
246-
#if FP_INV == JUMPDS || !defined(STRIP)
246+
#if FP_INV == JMPDS || !defined(STRIP)
247247
bn_make(&(ctx->inv), RLC_FP_DIGS);
248248
#endif /* FP_INV */
249249
bn_make(&(ctx->srt), RLC_FP_DIGS);
@@ -262,7 +262,7 @@ void fp_prime_clean(void) {
262262
bn_clean(&(ctx->one));
263263
bn_clean(&(ctx->conv));
264264
#endif
265-
#if FP_INV == JUMPDS || !defined(STRIP)
265+
#if FP_INV == JMPDS || !defined(STRIP)
266266
bn_clean(&(ctx->inv));
267267
#endif /* FP_INV */
268268
bn_clean(&(ctx->srt));

0 commit comments

Comments
 (0)