summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/rsa/rsa_chk.c
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2017-01-21 11:00:46 +0000
committerbeck <beck@openbsd.org>2017-01-21 11:00:46 +0000
commitb0f5cbc3c22568232a5f0f45fea89dd1cbb6063b (patch)
tree8f91fe3f7e40e41306d3e708618d467422c540af /lib/libcrypto/rsa/rsa_chk.c
parentMove virtio config from files.pci to files.pci (diff)
downloadwireguard-openbsd-b0f5cbc3c22568232a5f0f45fea89dd1cbb6063b.tar.xz
wireguard-openbsd-b0f5cbc3c22568232a5f0f45fea89dd1cbb6063b.zip
Add ct and nonct versions of BN_mod_inverse for internal use
ok jsing@
Diffstat (limited to 'lib/libcrypto/rsa/rsa_chk.c')
-rw-r--r--lib/libcrypto/rsa/rsa_chk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/rsa/rsa_chk.c b/lib/libcrypto/rsa/rsa_chk.c
index efe9431f2dd..91616d17cbe 100644
--- a/lib/libcrypto/rsa/rsa_chk.c
+++ b/lib/libcrypto/rsa/rsa_chk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_chk.c,v 1.10 2017/01/21 10:38:29 beck Exp $ */
+/* $OpenBSD: rsa_chk.c,v 1.11 2017/01/21 11:00:47 beck Exp $ */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
*
@@ -191,7 +191,7 @@ RSA_check_key(const RSA *key)
}
/* iqmp = q^-1 mod p? */
- if (!BN_mod_inverse(i, key->q, key->p, ctx)) {
+ if (!BN_mod_inverse_ct(i, key->q, key->p, ctx)) {
ret = -1;
goto err;
}