Skip to content

Commit

Permalink
Big refactoring of the EP module.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Mar 29, 2024
1 parent 1d746d7 commit cf08580
Show file tree
Hide file tree
Showing 21 changed files with 818 additions and 909 deletions.
4 changes: 0 additions & 4 deletions include/relic_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,6 @@ typedef struct _ctx_t {
fp_st ep_a;
/** The b-coefficient of the elliptic curve. */
fp_st ep_b;
/** The value 3b used in elliptic curve arithmetic. */
fp_st ep_b3;
/** The generator of the elliptic curve. */
ep_st ep_g;
/** The order of the group of points in the elliptic curve. */
Expand All @@ -292,8 +290,6 @@ typedef struct _ctx_t {
int ep_opt_a;
/** Optimization identifier for the b-coefficient. */
int ep_opt_b;
/** Optimization identifier for the b3 value. */
int ep_opt_b3;
/** Flag that stores if the prime curve has efficient endomorphisms. */
int ep_is_endom;
/** Flag that stores if the prime curve is supersingular. */
Expand Down
2 changes: 2 additions & 0 deletions include/relic_ep.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ enum {
N16_P766,
/* Fotiadis-Moartindale with embedding degree 18. */
FM18_P768,
/** Barreto-Lynn-Scott curve with embedding degree 12. */
B12_P1150,
/** 1536-bit supersingular curve. */
SS_P1536,
/** 3072-bit supersingular curve. */
Expand Down
2 changes: 2 additions & 0 deletions include/relic_fp.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ enum {
FM18_768,
/** 1024-bit prime for CTIDH. */
CTIDH_1024,
/** 1150-bit prime for BLS curve with embedding degree 12. */
B12_1150,
/** 1536-bit prime for supersingular curve with embedding degree k = 2. */
SS_1536,
/** 2048-bit prime for CTDIH. */
Expand Down
Loading

0 comments on commit cf08580

Please sign in to comment.