From: Dmitry Baryshkov Date: Sat, 18 Jan 2020 13:01:44 +0000 (+0300) Subject: gost gc512a: rename functions to follow usual pattern X-Git-Tag: nettle_3.6rc1~32^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c395bff9ef80f3c0d2b95d10eb9f71c316ea50c;p=thirdparty%2Fnettle.git gost gc512a: rename functions to follow usual pattern Signed-off-by: Dmitry Baryshkov --- diff --git a/ecc-gost-gc512a.c b/ecc-gost-gc512a.c index 4baec1f5..6d210925 100644 --- a/ecc-gost-gc512a.c +++ b/ecc-gost-gc512a.c @@ -43,7 +43,7 @@ #include "ecc-gost-gc512a.h" static void -ecc_gc512a_modp (const struct ecc_modulo *m, mp_limb_t *rp) +ecc_gost_gc512a_modp (const struct ecc_modulo *m, mp_limb_t *rp) { mp_size_t mn = m->size; mp_limb_t hi; @@ -54,8 +54,8 @@ ecc_gc512a_modp (const struct ecc_modulo *m, mp_limb_t *rp) assert(hi == 0); } -#define ecc_gc512a_modp ecc_gc512a_modp -#define ecc_gc512a_modq ecc_mod +#define ecc_gost_gc512a_modp ecc_gost_gc512a_modp +#define ecc_gost_gc512a_modq ecc_mod const struct ecc_curve _nettle_gost_gc512a = { @@ -73,8 +73,8 @@ const struct ecc_curve _nettle_gost_gc512a = ecc_redc_ppm1, ecc_pp1h, - ecc_gc512a_modp, - ecc_gc512a_modp, + ecc_gost_gc512a_modp, + ecc_gost_gc512a_modp, ecc_mod_inv, NULL, }, @@ -92,8 +92,8 @@ const struct ecc_curve _nettle_gost_gc512a = NULL, ecc_qp1h, - ecc_gc512a_modq, - ecc_gc512a_modq, + ecc_gost_gc512a_modq, + ecc_gost_gc512a_modq, ecc_mod_inv, NULL, },