summaryrefslogtreecommitdiffstats
path: root/doc/crypto
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2000-02-25 14:19:17 +0000
committerUlf Möller <ulf@openssl.org>2000-02-25 14:19:17 +0000
commit4101054ab5308b906b774ef30fe5d28c9630e501 (patch)
tree3461e1886678680c4e802a93a4271060cbd6ff36 /doc/crypto
parentfea217f96f1396ee83341f596ecc083f6a91dfbf (diff)
*** empty log message ***
Diffstat (limited to 'doc/crypto')
-rw-r--r--doc/crypto/RSA_public_encrypt.pod10
-rw-r--r--doc/crypto/RSA_sign.pod2
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/crypto/RSA_public_encrypt.pod b/doc/crypto/RSA_public_encrypt.pod
index b146ad38a8..910c4752b8 100644
--- a/doc/crypto/RSA_public_encrypt.pod
+++ b/doc/crypto/RSA_public_encrypt.pod
@@ -18,7 +18,7 @@ RSA_public_encrypt, RSA_private_decrypt - RSA public key cryptography
RSA_public_encrypt() encrypts the B<flen> bytes at B<from> (usually a
session key) using the public key B<rsa> and stores the ciphertext in
-B<to>. B<to> must point to B<RSA_size(rsa)> bytes of memory.
+B<to>. B<to> must point to RSA_size(B<rsa>) bytes of memory.
B<padding> denotes one of the following modes:
@@ -46,21 +46,21 @@ Encrypting user data directly with RSA is insecure.
=back
-B<flen> must be less than RSA_size(rsa) - 11 for the PKCS #1 v1.5
-based padding modes, and less than RSA_size(rsa) - 21 for
+B<flen> must be less than RSA_size(B<rsa>) - 11 for the PKCS #1 v1.5
+based padding modes, and less than RSA_size(B<rsa>) - 21 for
RSA_PKCS1_OAEP_PADDING. The random number generator must be seeded
prior to calling RSA_public_encrypt().
RSA_private_decrypt() decrypts the B<flen> bytes at B<from> using the
private key B<rsa> and stores the plaintext in B<to>. B<to> must point
to a memory section large enough to hold the decrypted data (which is
-smaller than B<RSA_size(rsa)>). B<padding> is the padding mode that
+smaller than RSA_size(B<rsa>)). B<padding> is the padding mode that
was used to encrypt the data.
=head1 RETURN VALUES
RSA_public_encrypt() returns the size of the encrypted data (i.e.,
-RSA_size(rsa)). RSA_private_decrypt() returns the size of the
+RSA_size(B<rsa>)). RSA_private_decrypt() returns the size of the
recovered plaintext.
On error, -1 is returned; the error codes can be
diff --git a/doc/crypto/RSA_sign.pod b/doc/crypto/RSA_sign.pod
index b0d374f12f..f0bf6eea1b 100644
--- a/doc/crypto/RSA_sign.pod
+++ b/doc/crypto/RSA_sign.pod
@@ -19,7 +19,7 @@ RSA_sign, RSA_verify - RSA signatures
RSA_sign() signs the message digest B<m> of size B<m_len> using the
private key B<rsa> as specified in PKCS #1 v2.0. It stores the
signature in B<sigret> and the signature size in B<siglen>. B<sigret>
-must point to B<RSA_size(rsa)> bytes of memory.
+must point to RSA_size(B<rsa>) bytes of memory.
B<type> denotes the message digest algorithm that was used to generate
B<m>. It usually is one of B<NID_sha1>, B<NID_ripemd160> and B<NID_md5>;