X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;f=doc%2Fcrypto%2FRSA_sign.pod;h=8553be8e99b611e754e9677da1cdad3d2f4afdc7;hb=151399a944e710c268c9b684e3c73125435faf7e;hp=08f0fe7068303dd15b0c722d46a896e5356879fc;hpb=bb075f883356589425b7e57f788c7498a83b0219;p=openssl.git diff --git a/doc/crypto/RSA_sign.pod b/doc/crypto/RSA_sign.pod index 08f0fe7068..8553be8e99 100644 --- a/doc/crypto/RSA_sign.pod +++ b/doc/crypto/RSA_sign.pod @@ -8,10 +8,10 @@ RSA_sign, RSA_verify - RSA signatures #include - int RSA_sign(int type, unsigned char *m, unsigned int m_len, + int RSA_sign(int type, const unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, RSA *rsa); - int RSA_verify(int type, unsigned char *m, unsigned int m_len, + int RSA_verify(int type, const unsigned char *m, unsigned int m_len, unsigned char *sigbuf, unsigned int siglen, RSA *rsa); =head1 DESCRIPTION @@ -19,11 +19,11 @@ RSA_sign, RSA_verify - RSA signatures RSA_sign() signs the message digest B of size B using the private key B as specified in PKCS #1 v2.0. It stores the signature in B and the signature size in B. B -must point to B bytes of memory. +must point to RSA_size(B) bytes of memory. B denotes the message digest algorithm that was used to generate -B. It usually is one of B, B and -B; see L for details. If B is B, +B. It usually is one of B, B and B; +see L for details. If B is B, an SSL signature (MD5 and SHA1 message digests with PKCS #1 padding and no algorithm identifier) is created. @@ -50,8 +50,8 @@ SSL, PKCS #1 v2.0 =head1 SEE ALSO -L, L, L, -L, +L, L, +L, L, L =head1 HISTORY