diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/sm2/sm2_sign.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/sm2/sm2_sign.c b/src/lib/libcrypto/sm2/sm2_sign.c index d306658a48..b35de841b1 100644 --- a/src/lib/libcrypto/sm2/sm2_sign.c +++ b/src/lib/libcrypto/sm2/sm2_sign.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sm2_sign.c,v 1.1.1.1 2021/08/18 16:04:32 tb Exp $ */ | 1 | /* $OpenBSD: sm2_sign.c,v 1.2 2022/01/20 11:12:14 inoguchi Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2017, 2019 Ribose Inc | 3 | * Copyright (c) 2017, 2019 Ribose Inc |
4 | * | 4 | * |
@@ -194,7 +194,7 @@ sm2_sig_gen(const EC_KEY *key, const BIGNUM *e) | |||
194 | goto err; | 194 | goto err; |
195 | } | 195 | } |
196 | 196 | ||
197 | if (!BN_mod_inverse_ct(s, s, order, ctx)) { | 197 | if (BN_mod_inverse_ct(s, s, order, ctx) == NULL) { |
198 | SM2error(ERR_R_BN_LIB); | 198 | SM2error(ERR_R_BN_LIB); |
199 | goto err; | 199 | goto err; |
200 | } | 200 | } |