diff options
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_crpt.c')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_crpt.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 | ||
75 | int | 75 | int |
76 | RSA_bits(const RSA *r) | ||
77 | { | ||
78 | return BN_num_bits(r->n); | ||
79 | } | ||
80 | |||
81 | int | ||
76 | RSA_size(const RSA *r) | 82 | RSA_size(const RSA *r) |
77 | { | 83 | { |
78 | return BN_num_bytes(r->n); | 84 | return BN_num_bytes(r->n); |