artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41d7544
)
Fix check for BN_mod_inverse_ct return value
author
inoguchi
<inoguchi@openbsd.org>
Thu, 20 Jan 2022 11:08:12 +0000
(11:08 +0000)
committer
inoguchi
<inoguchi@openbsd.org>
Thu, 20 Jan 2022 11:08:12 +0000
(11:08 +0000)
ok jsing@ millert@ tb@
lib/libcrypto/rsa/rsa_chk.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/rsa/rsa_chk.c
b/lib/libcrypto/rsa/rsa_chk.c
index
807eae0
..
ac9dbf7
100644
(file)
--- a/
lib/libcrypto/rsa/rsa_chk.c
+++ b/
lib/libcrypto/rsa/rsa_chk.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rsa_chk.c,v 1.1
5 2022/01/10 00:03:02 tb
Exp $ */
+/* $OpenBSD: rsa_chk.c,v 1.1
6 2022/01/20 11:08:12 inoguchi
Exp $ */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
*
@@
-199,7
+199,7
@@
RSA_check_key(const RSA *key)
}
/* iqmp = q^-1 mod p? */
- if (
!BN_mod_inverse_ct(i, key->q, key->p, ctx)
) {
+ if (
BN_mod_inverse_ct(i, key->q, key->p, ctx) == NULL
) {
ret = -1;
goto err;
}