5 RSA_size, RSA_bits - get RSA modulus size
9 #include <openssl/rsa.h>
11 int RSA_size(const RSA *rsa);
13 int RSA_bits(const RSA *rsa);
17 RSA_size() returns the RSA modulus size in bytes. It can be used to
18 determine how much memory must be allocated for an RSA encrypted
21 RSA_bits() returns the number of significant bits.
23 B<rsa> and B<rsa-E<gt>n> must not be B<NULL>.
35 RSA_bits() was added in OpenSSL 1.1.0.
39 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
41 Licensed under the OpenSSL license (the "License"). You may not use
42 this file except in compliance with the License. You can obtain a copy
43 in the file LICENSE in the source distribution or at
44 L<https://www.openssl.org/source/license.html>.