From 12c28a1caefc034938d6a57856ac846a4ed47ebb Mon Sep 17 00:00:00 2001 From: Gorachya <38173958+Gorachya@users.noreply.github.com> Date: Thu, 12 May 2022 20:38:13 +0800 Subject: [PATCH] Add files via upload --- src/sm9_alg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sm9_alg.c b/src/sm9_alg.c index 02fef94f..9dd9626e 100644 --- a/src/sm9_alg.c +++ b/src/sm9_alg.c @@ -1677,6 +1677,7 @@ void sm9_twist_point_mul(sm9_twist_point_t *R, const sm9_bn_t k, const sm9_twist int i; sm9_bn_to_bits(k, kbits); + sm9_twist_point_set_infinity(Q); for (i = 0; i < 256; i++) { sm9_twist_point_dbl(Q, Q); if (kbits[i] == '1') {