diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2017-01-21 23:02:54 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2017-01-21 23:02:54 +0000 |
commit | be799f04528ecbce188d414bcc1b6fb566947dc2 (patch) | |
tree | 5c5458a3f328cdec5e31713cf436d7426687eedd /lib | |
parent | b6bb08cdd0c43e4825f518d7702a66055538f759 (diff) |
use BN_div_nonct where it is safe to do so.
ok guenther@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/bn/bn_gcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/bn/bn_gcd.c b/lib/libcrypto/bn/bn_gcd.c index 4eab1b36d21..30896e4763f 100644 --- a/lib/libcrypto/bn/bn_gcd.c +++ b/lib/libcrypto/bn/bn_gcd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_gcd.c,v 1.12 2017/01/21 11:00:46 beck Exp $ */ +/* $OpenBSD: bn_gcd.c,v 1.13 2017/01/21 23:02:53 beck Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -420,7 +420,7 @@ BN_mod_inverse_internal(BIGNUM *in, const BIGNUM *a, const BIGNUM *n, BN_CTX *ct } } } else { - if (!BN_div_ct(D, M, A, B, ctx)) + if (!BN_div_nonct(D, M, A, B, ctx)) goto err; } |