summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_recp.c
diff options
context:
space:
mode:
authorbeck <>2017-01-21 10:38:29 +0000
committerbeck <>2017-01-21 10:38:29 +0000
commitbce45cc241b51da39ead8b476c811b47d76ccc46 (patch)
treeec1232403b181357067d4ac6dc7124fb566c88d8 /src/lib/libcrypto/bn/bn_recp.c
parentba7dab5b77b1e4dd797dbe7a4c31b5f4cbea0cd7 (diff)
downloadopenbsd-bce45cc241b51da39ead8b476c811b47d76ccc46.tar.gz
openbsd-bce45cc241b51da39ead8b476c811b47d76ccc46.tar.bz2
openbsd-bce45cc241b51da39ead8b476c811b47d76ccc46.zip
Split out BN_div and BN_mod into ct and nonct versions for Internal use.
ok jsing@
Diffstat (limited to 'src/lib/libcrypto/bn/bn_recp.c')
-rw-r--r--src/lib/libcrypto/bn/bn_recp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_recp.c b/src/lib/libcrypto/bn/bn_recp.c
index b0bd0aa4df..aae7c7ef85 100644
--- a/src/lib/libcrypto/bn/bn_recp.c
+++ b/src/lib/libcrypto/bn/bn_recp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_recp.c,v 1.13 2015/04/29 00:11:12 doug Exp $ */ 1/* $OpenBSD: bn_recp.c,v 1.14 2017/01/21 10:38:29 beck Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -251,7 +251,7 @@ BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx)
251 if (!BN_set_bit(t, len)) 251 if (!BN_set_bit(t, len))
252 goto err; 252 goto err;
253 253
254 if (!BN_div(r, NULL, t,m, ctx)) 254 if (!BN_div_ct(r, NULL, t,m, ctx))
255 goto err; 255 goto err;
256 256
257 ret = len; 257 ret = len;