Skip to content

Commit

Permalink
More fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Dec 9, 2023
1 parent 1741323 commit 331745e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/relic_pc.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#elif FP_PRIME == 315 || FP_PRIME == 317 || FP_PRIME == 330 || FP_PRIME == 509 || FP_PRIME == 765 || FP_PRIME == 766
#define RLC_G2_LOWER ep4_
#define RLC_G2_BASEF(A) A[0][0]
#elif FP_PRIME == 508 || FP_PRIME == 638 && !defined(FP_QNRES)
#elif FP_PRIME == 508 || FP_PRIME == 768 || FP_PRIME == 638 && !defined(FP_QNRES)
#define RLC_G2_LOWER ep3_
#define RLC_G2_BASEF(A) A[0]
#else
Expand All @@ -78,7 +78,7 @@
#elif FP_PRIME == 315 || FP_PRIME == 317 || FP_PRIME == 509
#define RLC_GT_LOWER fp24_
#define RLC_GT_EMBED 24
#elif FP_PRIME == 508 || FP_PRIME == 638 && !defined(FP_QNRES)
#elif FP_PRIME == 508 || FP_PRIME == 768 || FP_PRIME == 638 && !defined(FP_QNRES)
#define RLC_GT_LOWER fp18_
#define RLC_GT_EMBED 18
#elif FP_PRIME == 330 || FP_PRIME == 765 || FP_PRIME == 766
Expand Down
4 changes: 4 additions & 0 deletions src/ep/relic_ep_param.c
Original file line number Diff line number Diff line change
Expand Up @@ -1756,6 +1756,9 @@ void ep_param_print(void) {
case K16_P766:
util_banner("Curve K16-P766:", 0);
break;
case FM18_P768:
util_banner("Curve FM18-P768:", 0);
break;
case SS_P1536:
util_banner("Curve SS-P1536:", 0);
break;
Expand Down Expand Up @@ -1818,6 +1821,7 @@ int ep_param_level(void) {
case N16_P765:
case FM16_P765:
case K16_P766:
case FM18_P768:
case K18_P638:
case B24_P509:
return 192;
Expand Down

0 comments on commit 331745e

Please sign in to comment.