]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
gost gc512a: rename functions to follow usual pattern
authorDmitry Baryshkov <dbaryshkov@gmail.com>
Sat, 18 Jan 2020 13:01:44 +0000 (16:01 +0300)
committerNiels Möller <nisse@lysator.liu.se>
Thu, 23 Jan 2020 13:45:40 +0000 (14:45 +0100)
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
ecc-gost-gc512a.c

index 4baec1f5945d400a6a7b1c28ca4bad197ff5716c..6d210925b609cba93d13796f5d276b81089a172e 100644 (file)
@@ -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,
   },