summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/Symbols.list1
-rw-r--r--src/lib/libcrypto/rsa/rsa.h3
-rw-r--r--src/lib/libcrypto/rsa/rsa_crpt.c8
3 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list
index ab4c8593d7..8f18580b55 100644
--- a/src/lib/libcrypto/Symbols.list
+++ b/src/lib/libcrypto/Symbols.list
@@ -2203,6 +2203,7 @@ RSA_PSS_PARAMS_free
2203RSA_PSS_PARAMS_it 2203RSA_PSS_PARAMS_it
2204RSA_PSS_PARAMS_new 2204RSA_PSS_PARAMS_new
2205RSA_X931_hash_id 2205RSA_X931_hash_id
2206RSA_bits
2206RSA_blinding_off 2207RSA_blinding_off
2207RSA_blinding_on 2208RSA_blinding_on
2208RSA_check_key 2209RSA_check_key
diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h
index 7d4bd838c5..7e28a8766c 100644
--- a/src/lib/libcrypto/rsa/rsa.h
+++ b/src/lib/libcrypto/rsa/rsa.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa.h,v 1.32 2018/02/17 13:47:36 tb Exp $ */ 1/* $OpenBSD: rsa.h,v 1.33 2018/02/18 12:52:13 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 *
@@ -256,6 +256,7 @@ struct rsa_st {
256 256
257RSA *RSA_new(void); 257RSA *RSA_new(void);
258RSA *RSA_new_method(ENGINE *engine); 258RSA *RSA_new_method(ENGINE *engine);
259int RSA_bits(const RSA *rsa);
259int RSA_size(const RSA *rsa); 260int RSA_size(const RSA *rsa);
260 261
261/* Deprecated version */ 262/* Deprecated version */
diff --git a/src/lib/libcrypto/rsa/rsa_crpt.c b/src/lib/libcrypto/rsa/rsa_crpt.c
index f0c925602f..a646ded4a7 100644
--- a/src/lib/libcrypto/rsa/rsa_crpt.c
+++ b/src/lib/libcrypto/rsa/rsa_crpt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_crpt.c,v 1.18 2017/01/29 17:49:23 beck Exp $ */ 1/* $OpenBSD: rsa_crpt.c,v 1.19 2018/02/18 12:52:13 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 *
@@ -73,6 +73,12 @@
73#endif 73#endif
74 74
75int 75int
76RSA_bits(const RSA *r)
77{
78 return BN_num_bits(r->n);
79}
80
81int
76RSA_size(const RSA *r) 82RSA_size(const RSA *r)
77{ 83{
78 return BN_num_bytes(r->n); 84 return BN_num_bytes(r->n);