summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_chk.c
diff options
context:
space:
mode:
authorbeck <>2017-01-21 11:00:47 +0000
committerbeck <>2017-01-21 11:00:47 +0000
commit9a561f2327a3e6b5ee853e60427012bfe6e02043 (patch)
tree7ad0f2808a2ac42a510bf2f280dba63a3dfc83e3 /src/lib/libcrypto/rsa/rsa_chk.c
parentbce45cc241b51da39ead8b476c811b47d76ccc46 (diff)
downloadopenbsd-9a561f2327a3e6b5ee853e60427012bfe6e02043.tar.gz
openbsd-9a561f2327a3e6b5ee853e60427012bfe6e02043.tar.bz2
openbsd-9a561f2327a3e6b5ee853e60427012bfe6e02043.zip
Add ct and nonct versions of BN_mod_inverse for internal use
ok jsing@
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_chk.c')
-rw-r--r--src/lib/libcrypto/rsa/rsa_chk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_chk.c b/src/lib/libcrypto/rsa/rsa_chk.c
index efe9431f2d..91616d17cb 100644
--- a/src/lib/libcrypto/rsa/rsa_chk.c
+++ b/src/lib/libcrypto/rsa/rsa_chk.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_chk.c,v 1.10 2017/01/21 10:38:29 beck Exp $ */ 1/* $OpenBSD: rsa_chk.c,v 1.11 2017/01/21 11:00:47 beck Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1999 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1999 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -191,7 +191,7 @@ RSA_check_key(const RSA *key)
191 } 191 }
192 192
193 /* iqmp = q^-1 mod p? */ 193 /* iqmp = q^-1 mod p? */
194 if (!BN_mod_inverse(i, key->q, key->p, ctx)) { 194 if (!BN_mod_inverse_ct(i, key->q, key->p, ctx)) {
195 ret = -1; 195 ret = -1;
196 goto err; 196 goto err;
197 } 197 }