diff --git a/src/sm9_z256_alg.c b/src/sm9_z256_alg.c index 14eaec77..5fed7298 100644 --- a/src/sm9_z256_alg.c +++ b/src/sm9_z256_alg.c @@ -1817,7 +1817,7 @@ void sm9_z256_point_sub_affine(SM9_Z256_POINT *R, const SM9_Z256_POINT *P, const extern const uint64_t sm9_z256_pre_comp[37][64 * 4 * 2]; static SM9_Z256_POINT_AFFINE (*g_pre_comp)[64] = (SM9_Z256_POINT_AFFINE (*)[64])sm9_z256_pre_comp; -void sm9_z256_point_mul_generator_fast(SM9_Z256_POINT *R, const sm9_z256_t k) +void sm9_z256_point_mul_generator(SM9_Z256_POINT *R, const sm9_z256_t k) { size_t window_size = 7; int R_infinity = 1; @@ -1846,11 +1846,6 @@ void sm9_z256_point_mul_generator_fast(SM9_Z256_POINT *R, const sm9_z256_t k) } } -void sm9_z256_point_mul_generator(SM9_Z256_POINT *R, const sm9_z256_t k) -{ - sm9_z256_point_mul(R, k, SM9_Z256_MONT_P1); -} - int sm9_z256_point_print(FILE *fp, int fmt, int ind, const char *label, const SM9_Z256_POINT *P) { uint8_t buf[65];