From 331745e81d716d77f2cb6fa228fde4898e26ec66 Mon Sep 17 00:00:00 2001 From: "Diego F. Aranha" Date: Sat, 9 Dec 2023 16:42:25 -0300 Subject: [PATCH] More fixes. --- include/relic_pc.h | 4 ++-- src/ep/relic_ep_param.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/relic_pc.h b/include/relic_pc.h index 1bfe508da..62a0bfe2a 100644 --- a/include/relic_pc.h +++ b/include/relic_pc.h @@ -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 @@ -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 diff --git a/src/ep/relic_ep_param.c b/src/ep/relic_ep_param.c index 38bc4ac87..c7a44c9fe 100644 --- a/src/ep/relic_ep_param.c +++ b/src/ep/relic_ep_param.c @@ -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; @@ -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;