RSA_size.pod 888 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. =pod
  2. =head1 NAME
  3. RSA_size, RSA_bits - get RSA modulus size
  4. =head1 SYNOPSIS
  5. #include <openssl/rsa.h>
  6. int RSA_size(const RSA *rsa);
  7. int RSA_bits(const RSA *rsa);
  8. =head1 DESCRIPTION
  9. RSA_size() returns the RSA modulus size in bytes. It can be used to
  10. determine how much memory must be allocated for an RSA encrypted
  11. value.
  12. RSA_bits() returns the number of significant bits.
  13. B<rsa> and B<rsa-E<gt>n> must not be B<NULL>.
  14. =head1 RETURN VALUE
  15. The size.
  16. =head1 SEE ALSO
  17. L<BN_num_bits(3)>
  18. =head1 HISTORY
  19. RSA_bits() was added in OpenSSL 1.1.0.
  20. =head1 COPYRIGHT
  21. Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
  22. Licensed under the OpenSSL license (the "License"). You may not use
  23. this file except in compliance with the License. You can obtain a copy
  24. in the file LICENSE in the source distribution or at
  25. L<https://www.openssl.org/source/license.html>.
  26. =cut