From fc04a3a8abcd125f38fe2bd2972a0897bc1bcad8 Mon Sep 17 00:00:00 2001 From: "[GGSuchao]" <[1500062807@pku.edu.cn]> Date: Thu, 6 Jul 2017 19:07:58 +0800 Subject: [PATCH] add sm2 --- crypto/sm2/sm2_standard_sign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/sm2/sm2_standard_sign.c b/crypto/sm2/sm2_standard_sign.c index 2469bf8a..4b447613 100644 --- a/crypto/sm2/sm2_standard_sign.c +++ b/crypto/sm2/sm2_standard_sign.c @@ -88,7 +88,7 @@ int Test_Range(big x) convert(1, one); decr(para_n, 1, decr_n); - if ((mr_compare(x, one) < 0) | (compare(x, decr_n) > 0)) + if ((mr_compare(x, one) < 0) | (mr_compare(x, decr_n) > 0)) return 1; return 0; }