From 890280dbbedd53aaee9dd3bfaf98137740494c92 Mon Sep 17 00:00:00 2001 From: Gorachya <38173958+Gorachya@users.noreply.github.com> Date: Fri, 13 May 2022 20:04:20 +0800 Subject: [PATCH] Update sm9test.c --- tests/sm9test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sm9test.c b/tests/sm9test.c index c413fc61..28867d99 100644 --- a/tests/sm9test.c +++ b/tests/sm9test.c @@ -117,7 +117,7 @@ int test_sm9_fn() { sm9_bn_from_hex(x, hex_x); sm9_bn_from_hex(y, hex_y); - sm9_fn_t iv = {0, 0, 0, 0, 0, 0, 0, 0}; if (!sm9_fn_is_zero(iv) != 0) goto err; ++j; + sm9_fn_t iv = {0, 0, 0, 0, 0, 0, 0, 0}; if (!sm9_fn_is_zero(iv)) goto err; ++j; sm9_fn_add(r, x, y); if (!sm9_bn_equ_hex(r, hex_fn_add)) goto err; ++j; sm9_fn_sub(r, x, y); if (!sm9_bn_equ_hex(r, hex_fn_sub)) goto err; ++j; sm9_fn_sub(r, y, x); if (!sm9_bn_equ_hex(r, hex_fn_nsub)) goto err; ++j;