Fix some RSA documentation
authorMatt Caswell <matt@openssl.org>
Fri, 10 Mar 2017 15:49:04 +0000 (15:49 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 10 Mar 2017 16:21:47 +0000 (16:21 +0000)
RSA_private_encrypt(), RSA_public_decrypt(), RSA_public_encrypt() and
RSA_private_decrypt() are declared with a "const" from parameter, but
this is not reflected in the docs.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2899)
(cherry picked from commit b41f6b64f809e5992b9f1b601b3dff1a2129da2d)

doc/crypto/RSA_private_encrypt.pod
doc/crypto/RSA_public_encrypt.pod

index 746a80c79ea0c85e87b5d1802b46550c27c5e857..3e1f895c5ad8c118e1f35f393df6e6005aa8d756 100644 (file)
@@ -8,10 +8,10 @@ RSA_private_encrypt, RSA_public_decrypt - low level signature operations
 
  #include <openssl/rsa.h>
 
- int RSA_private_encrypt(int flen, unsigned char *from,
+ int RSA_private_encrypt(int flen, const unsigned char *from,
     unsigned char *to, RSA *rsa, int padding);
 
- int RSA_public_decrypt(int flen, unsigned char *from, 
+ int RSA_public_decrypt(int flen, const unsigned char *from,
     unsigned char *to, RSA *rsa, int padding);
 
 =head1 DESCRIPTION
index ab0fe3b2cd1c77b81178b56219d9d7e5e3d547de..0541f348b3e20c199140774c426eccf0b202d485 100644 (file)
@@ -8,10 +8,10 @@ RSA_public_encrypt, RSA_private_decrypt - RSA public key cryptography
 
  #include <openssl/rsa.h>
 
- int RSA_public_encrypt(int flen, unsigned char *from,
+ int RSA_public_encrypt(int flen, const unsigned char *from,
     unsigned char *to, RSA *rsa, int padding);
 
- int RSA_private_decrypt(int flen, unsigned char *from,
+ int RSA_private_decrypt(int flen, const unsigned char *from,
      unsigned char *to, RSA *rsa, int padding);
 
 =head1 DESCRIPTION