Import OpenSSL 1.1.0f
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
verifying PKCS #1 signatures, L<RSA_sign(3)|RSA_sign(3)> and L<RSA_verify(3)|RSA_verify(3)> should be
|
||||
verifying PKCS #1 signatures, L<RSA_sign(3)> and L<RSA_verify(3)> should be
|
||||
used.
|
||||
|
||||
=item RSA_NO_PADDING
|
||||
@@ -55,16 +55,20 @@ 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 L<ERR_get_error(3)|ERR_get_error(3)>.
|
||||
obtained by L<ERR_get_error(3)>.
|
||||
|
||||
=head1 SEE ALSO
|
||||
|
||||
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)>
|
||||
L<ERR_get_error(3)>,
|
||||
L<RSA_sign(3)>, L<RSA_verify(3)>
|
||||
|
||||
=head1 HISTORY
|
||||
=head1 COPYRIGHT
|
||||
|
||||
The B<padding> argument was added in SSLeay 0.8. RSA_NO_PADDING is
|
||||
available since SSLeay 0.9.0.
|
||||
Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
|
||||
|
||||
Licensed under the OpenSSL license (the "License"). You may not use
|
||||
this file except in compliance with the License. You can obtain a copy
|
||||
in the file LICENSE in the source distribution or at
|
||||
L<https://www.openssl.org/source/license.html>.
|
||||
|
||||
=cut
|
||||
|
||||
Reference in New Issue
Block a user