Skip to content

Commit

Permalink
Shorten config.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Jan 27, 2025
1 parent 322fce6 commit 1f8ef05
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions include/relic_pp.h
Original file line number Diff line number Diff line change
Expand Up @@ -485,12 +485,10 @@
* @param[in] P - the first elliptic curve point.
* @param[in] Q - the second elliptic curve point.
*/
#if PP_MAP == TATEP
#if PP_MAP == TATEP || PP_MAP == OATEP
#define pp_map_k1(R, P, Q) pp_map_tatep_k1(R, P, Q)
#elif PP_MAP == WEILP
#define pp_map_k1(R, P, Q) pp_map_weilp_k1(R, P, Q)
#elif PP_MAP == OATEP
#define pp_map_k1(R, P, Q) pp_map_tatep_k1(R, P, Q)
#endif

/**
Expand All @@ -501,12 +499,10 @@
* @param[in] P - the first elliptic curve point.
* @param[in] Q - the second elliptic curve point.
*/
#if PP_MAP == TATEP
#if PP_MAP == TATEP || PP_MAP == OATEP
#define pp_map_k2(R, P, Q) pp_map_tatep_k2(R, P, Q)
#elif PP_MAP == WEILP
#define pp_map_k2(R, P, Q) pp_map_weilp_k2(R, P, Q)
#elif PP_MAP == OATEP
#define pp_map_k2(R, P, Q) pp_map_tatep_k2(R, P, Q)
#endif

/**
Expand Down

0 comments on commit 1f8ef05

Please sign in to comment.