projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New docs.
[oweals/openssl.git]
/
doc
/
crypto
/
RSA_private_encrypt.pod
diff --git
a/doc/crypto/RSA_private_encrypt.pod
b/doc/crypto/RSA_private_encrypt.pod
index 59ab49d41f141dd87844d058c138a11f6eec1371..746a80c79ea0c85e87b5d1802b46550c27c5e857 100644
(file)
--- a/
doc/crypto/RSA_private_encrypt.pod
+++ b/
doc/crypto/RSA_private_encrypt.pod
@@
-2,17
+2,17
@@
=head1 NAME
=head1 NAME
-RSA_private_encrypt, RSA_public_decrypt -
L
ow level signature operations
+RSA_private_encrypt, RSA_public_decrypt -
l
ow level signature operations
=head1 SYNOPSIS
#include <openssl/rsa.h>
int RSA_private_encrypt(int flen, unsigned char *from,
=head1 SYNOPSIS
#include <openssl/rsa.h>
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,
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
=head1 DESCRIPTION
@@
-31,7
+31,7
@@
B<padding> denotes one of the following modes:
PKCS #1 v1.5 padding. This function does not handle the
B<algorithmIdentifier> specified in PKCS #1. When generating or
PKCS #1 v1.5 padding. This function does not handle the
B<algorithmIdentifier> 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<RSA_sign(3)|RSA_sign(3)> and L<RSA_verify(3)|RSA_verify(3)>
should be
used.
=item RSA_NO_PADDING
used.
=item RSA_NO_PADDING
@@
-42,9
+42,6
@@
Signing user data directly with RSA is insecure.
=back
=back
-The random number generator must be seeded prior to calling
-RSA_private_encrypt().
-
RSA_public_decrypt() recovers the message digest from the B<flen>
bytes long signature at B<from> using the signer's public key
B<rsa>. B<to> must point to a memory section large enough to hold the
RSA_public_decrypt() recovers the message digest from the B<flen>
bytes long signature at B<from> using the signer's public key
B<rsa>. B<to> must point to a memory section large enough to hold the
@@
-58,11
+55,12
@@
RSA_size(rsa)). RSA_public_decrypt() returns the size of the
recovered message digest.
On error, -1 is returned; the error codes can be
recovered message digest.
On error, -1 is returned; the error codes can be
-obtained by
ERR_get_error(3)
.
+obtained by
L<ERR_get_error(3)|ERR_get_error(3)>
.
=head1 SEE ALSO
=head1 SEE ALSO
-err(3), rand(3), rsa(3), RSA_sign(3), RSA_verify(3)
+L<ERR_get_error(3)|ERR_get_error(3)>, L<rsa(3)|rsa(3)>,
+L<RSA_sign(3)|RSA_sign(3)>, L<RSA_verify(3)|RSA_verify(3)>
=head1 HISTORY
=head1 HISTORY