summaryrefslogtreecommitdiffstats
path: root/doc/crypto/RSA_size.pod
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2000-01-11 22:35:21 +0000
committerUlf Möller <ulf@openssl.org>2000-01-11 22:35:21 +0000
commit2186cd8ef1c4db86109af7a38182c2bd9ddbbb32 (patch)
tree407efa98f1a4fe9b118651f06c57e85d6d0139e5 /doc/crypto/RSA_size.pod
parentde73e397f86c578ee514816ca1a312689a89686f (diff)
Document the RSA library.
Diffstat (limited to 'doc/crypto/RSA_size.pod')
-rw-r--r--doc/crypto/RSA_size.pod33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/crypto/RSA_size.pod b/doc/crypto/RSA_size.pod
new file mode 100644
index 0000000000..9af1c40f1a
--- /dev/null
+++ b/doc/crypto/RSA_size.pod
@@ -0,0 +1,33 @@
+=pod
+
+=head1 NAME
+
+RSA_size - Get RSA modulus size
+
+=head1 SYNOPSIS
+
+ #include <openssl/rsa.h>
+
+ int RSA_size(RSA *rsa);
+
+=head1 DESCRIPTION
+
+This function returns the RSA modulus size in bytes. It can be used to
+determine how much memory must be allocated for an RSA encrypted
+value.
+
+B<rsa->n> must not be B<NULL>.
+
+=head1 RETURN VALUE
+
+The size in bytes.
+
+=head1 SEE ALSO
+
+rsa(3)
+
+=head1 HISTORY
+
+RSA_size() is available in all versions of SSLeay and OpenSSL.
+
+=cut