summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2017-01-21 23:02:54 +0000
committerBob Beck <beck@cvs.openbsd.org>2017-01-21 23:02:54 +0000
commitbe799f04528ecbce188d414bcc1b6fb566947dc2 (patch)
tree5c5458a3f328cdec5e31713cf436d7426687eedd /lib
parentb6bb08cdd0c43e4825f518d7702a66055538f759 (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.c4
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;
}