Commit 7c395bff authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Niels Möller

gost gc512a: rename functions to follow usual pattern

Signed-off-by: Dmitry Baryshkov's avatarDmitry Baryshkov <dbaryshkov@gmail.com>
parent cf4675dc
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include "ecc-gost-gc512a.h" #include "ecc-gost-gc512a.h"
static void 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_size_t mn = m->size;
mp_limb_t hi; mp_limb_t hi;
...@@ -54,8 +54,8 @@ ecc_gc512a_modp (const struct ecc_modulo *m, mp_limb_t *rp) ...@@ -54,8 +54,8 @@ ecc_gc512a_modp (const struct ecc_modulo *m, mp_limb_t *rp)
assert(hi == 0); assert(hi == 0);
} }
#define ecc_gc512a_modp ecc_gc512a_modp #define ecc_gost_gc512a_modp ecc_gost_gc512a_modp
#define ecc_gc512a_modq ecc_mod #define ecc_gost_gc512a_modq ecc_mod
const struct ecc_curve _nettle_gost_gc512a = const struct ecc_curve _nettle_gost_gc512a =
{ {
...@@ -73,8 +73,8 @@ const struct ecc_curve _nettle_gost_gc512a = ...@@ -73,8 +73,8 @@ const struct ecc_curve _nettle_gost_gc512a =
ecc_redc_ppm1, ecc_redc_ppm1,
ecc_pp1h, ecc_pp1h,
ecc_gc512a_modp, ecc_gost_gc512a_modp,
ecc_gc512a_modp, ecc_gost_gc512a_modp,
ecc_mod_inv, ecc_mod_inv,
NULL, NULL,
}, },
...@@ -92,8 +92,8 @@ const struct ecc_curve _nettle_gost_gc512a = ...@@ -92,8 +92,8 @@ const struct ecc_curve _nettle_gost_gc512a =
NULL, NULL,
ecc_qp1h, ecc_qp1h,
ecc_gc512a_modq, ecc_gost_gc512a_modq,
ecc_gc512a_modq, ecc_gost_gc512a_modq,
ecc_mod_inv, ecc_mod_inv,
NULL, NULL,
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment