diff options
Diffstat (limited to 'secure/lib/libcrypto/man/RSA_size.3')
-rw-r--r-- | secure/lib/libcrypto/man/RSA_size.3 | 41 |
1 files changed, 31 insertions, 10 deletions
diff --git a/secure/lib/libcrypto/man/RSA_size.3 b/secure/lib/libcrypto/man/RSA_size.3 index 8e7b22871a0d..3cd8cce07433 100644 --- a/secure/lib/libcrypto/man/RSA_size.3 +++ b/secure/lib/libcrypto/man/RSA_size.3 @@ -128,34 +128,55 @@ .rm #[ #] #H #V #F C .\" ======================================================================== .\" -.IX Title "RSA_size 3" -.TH RSA_size 3 "2018-08-14" "1.0.2p" "OpenSSL" +.IX Title "RSA_SIZE 3" +.TH RSA_SIZE 3 "2018-09-11" "1.1.1" "OpenSSL" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" -RSA_size \- get RSA modulus size +RSA_size, RSA_bits, RSA_security_bits \- get RSA modulus size or security bits .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& #include <openssl/rsa.h> \& \& int RSA_size(const RSA *rsa); +\& +\& int RSA_bits(const RSA *rsa); +\& +\& int RSA_security_bits(const RSA *rsa) .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" -This function returns the \s-1RSA\s0 modulus size in bytes. It can be used to +\&\fIRSA_size()\fR returns the \s-1RSA\s0 modulus size in bytes. It can be used to determine how much memory must be allocated for an \s-1RSA\s0 encrypted value. .PP -\&\fBrsa\->n\fR must not be \fB\s-1NULL\s0\fR. -.SH "RETURN VALUE" -.IX Header "RETURN VALUE" -The size in bytes. +\&\fIRSA_bits()\fR returns the number of significant bits. +.PP +\&\fBrsa\fR and \fBrsa\->n\fR must not be \fB\s-1NULL\s0\fR. +.PP +\&\fIRSA_security_bits()\fR returns the number of security bits of the given \fBrsa\fR +key. See \fIBN_security_bits\fR\|(3). +.SH "RETURN VALUES" +.IX Header "RETURN VALUES" +\&\fIRSA_size()\fR returns the size of modulus in bytes. +.PP +\&\fIDSA_bits()\fR returns the number of bits in the key. +.PP +\&\fIRSA_security_bits()\fR returns the number of security bits. .SH "SEE ALSO" .IX Header "SEE ALSO" -\&\fIrsa\fR\|(3) +\&\fIBN_num_bits\fR\|(3) .SH "HISTORY" .IX Header "HISTORY" -\&\fIRSA_size()\fR is available in all versions of SSLeay and OpenSSL. +\&\fIRSA_bits()\fR was added in OpenSSL 1.1.0. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2000\-2018 The OpenSSL Project Authors. All Rights Reserved. +.PP +Licensed under the OpenSSL license (the \*(L"License\*(R"). You may not use +this file except in compliance with the License. You can obtain a copy +in the file \s-1LICENSE\s0 in the source distribution or at +<https://www.openssl.org/source/license.html>. |