X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=doc%2Fcrypto%2FRSA_private_encrypt.pod;h=fa4830c97e313cfc3d4671c2b855bbeb8481d742;hp=59ab49d41f141dd87844d058c138a11f6eec1371;hb=35d8fa563c9abc80c6e8d87396ab48dbd1a4c78d;hpb=2186cd8ef1c4db86109af7a38182c2bd9ddbbb32 diff --git a/doc/crypto/RSA_private_encrypt.pod b/doc/crypto/RSA_private_encrypt.pod index 59ab49d41f..fa4830c97e 100644 --- a/doc/crypto/RSA_private_encrypt.pod +++ b/doc/crypto/RSA_private_encrypt.pod @@ -2,17 +2,17 @@ =head1 NAME -RSA_private_encrypt, RSA_public_decrypt - Low level signature operations +RSA_private_encrypt, RSA_public_decrypt - low level signature operations =head1 SYNOPSIS #include int RSA_private_encrypt(int flen, unsigned char *from, - unsigned char *to, RSA *rsa,int padding); + unsigned char *to, RSA *rsa, int padding); int RSA_public_decrypt(int flen, unsigned char *from, - unsigned char *to, RSA *rsa,int padding); + unsigned char *to, RSA *rsa, int padding); =head1 DESCRIPTION @@ -31,7 +31,7 @@ B denotes one of the following modes: PKCS #1 v1.5 padding. This function does not handle the B specified in PKCS #1. When generating or -verifying PKCS #1 signatures, RSA_sign(3) and RSA_verify(3) should be +verifying PKCS #1 signatures, L and L should be used. =item RSA_NO_PADDING @@ -42,9 +42,6 @@ Signing user data directly with RSA is insecure. =back -The random number generator must be seeded prior to calling -RSA_private_encrypt(). - RSA_public_decrypt() recovers the message digest from the B bytes long signature at B using the signer's public key B. B must point to a memory section large enough to hold the @@ -58,15 +55,11 @@ RSA_size(rsa)). RSA_public_decrypt() returns the size of the recovered message digest. On error, -1 is returned; the error codes can be -obtained by ERR_get_error(3). +obtained by L. =head1 SEE ALSO -err(3), rand(3), rsa(3), RSA_sign(3), RSA_verify(3) - -=head1 HISTORY - -The B argument was added in SSLeay 0.8. RSA_NO_PADDING is -available since SSLeay 0.9.0. +L, L, +L, L =cut