diff options
author | 2018-02-18 12:52:13 +0000 | |
---|---|---|
committer | 2018-02-18 12:52:13 +0000 | |
commit | 9f33c1ce97e59be56b2a5c4a2a05a1e3db28c8ce (patch) | |
tree | 8cd542fc6bead582397799a27aaeccace878eac2 /lib/libcrypto/rsa/rsa_crpt.c | |
parent | Provide DH_set0_pqg. (diff) | |
download | wireguard-openbsd-9f33c1ce97e59be56b2a5c4a2a05a1e3db28c8ce.tar.xz wireguard-openbsd-9f33c1ce97e59be56b2a5c4a2a05a1e3db28c8ce.zip |
Provide RSA_bits()
ok jsing
Diffstat (limited to 'lib/libcrypto/rsa/rsa_crpt.c')
-rw-r--r-- | lib/libcrypto/rsa/rsa_crpt.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libcrypto/rsa/rsa_crpt.c b/lib/libcrypto/rsa/rsa_crpt.c index f0c925602f7..a646ded4a73 100644 --- a/lib/libcrypto/rsa/rsa_crpt.c +++ b/lib/libcrypto/rsa/rsa_crpt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_crpt.c,v 1.18 2017/01/29 17:49:23 beck Exp $ */ +/* $OpenBSD: rsa_crpt.c,v 1.19 2018/02/18 12:52:13 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -73,6 +73,12 @@ #endif int +RSA_bits(const RSA *r) +{ + return BN_num_bits(r->n); +} + +int RSA_size(const RSA *r) { return BN_num_bytes(r->n); |