diff options
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_lib.c')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_lib.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_lib.c b/src/lib/libcrypto/rsa/rsa_lib.c index ddf3f1ba75..570bb6c05e 100644 --- a/src/lib/libcrypto/rsa/rsa_lib.c +++ b/src/lib/libcrypto/rsa/rsa_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_lib.c,v 1.42 2022/01/07 09:55:32 tb Exp $ */ | 1 | /* $OpenBSD: rsa_lib.c,v 1.43 2022/06/27 12:30:28 tb 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 | * |
@@ -241,6 +241,12 @@ RSA_get_ex_data(const RSA *r, int idx) | |||
241 | return CRYPTO_get_ex_data(&r->ex_data, idx); | 241 | return CRYPTO_get_ex_data(&r->ex_data, idx); |
242 | } | 242 | } |
243 | 243 | ||
244 | int | ||
245 | RSA_security_bits(const RSA *rsa) | ||
246 | { | ||
247 | return BN_security_bits(RSA_bits(rsa), -1); | ||
248 | } | ||
249 | |||
244 | void | 250 | void |
245 | RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) | 251 | RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) |
246 | { | 252 | { |