RSA_public_encrypt.pod (109998) | RSA_public_encrypt.pod (142425) |
---|---|
1=pod 2 3=head1 NAME 4 5RSA_public_encrypt, RSA_private_decrypt - RSA public key cryptography 6 7=head1 SYNOPSIS 8 --- 33 unchanged lines hidden (view full) --- 42 43Raw RSA encryption. This mode should I<only> be used to implement 44cryptographically sound padding modes in the application code. 45Encrypting user data directly with RSA is insecure. 46 47=back 48 49B<flen> must be less than RSA_size(B<rsa>) - 11 for the PKCS #1 v1.5 | 1=pod 2 3=head1 NAME 4 5RSA_public_encrypt, RSA_private_decrypt - RSA public key cryptography 6 7=head1 SYNOPSIS 8 --- 33 unchanged lines hidden (view full) --- 42 43Raw RSA encryption. This mode should I<only> be used to implement 44cryptographically sound padding modes in the application code. 45Encrypting user data directly with RSA is insecure. 46 47=back 48 49B<flen> must be less than RSA_size(B<rsa>) - 11 for the PKCS #1 v1.5 |
50based padding modes, and less than RSA_size(B<rsa>) - 41 for 51RSA_PKCS1_OAEP_PADDING. The random number generator must be seeded 52prior to calling RSA_public_encrypt(). | 50based padding modes, less than RSA_size(B 51RSA_PKCS1_OAEP_PADDING and exactly RSA_size(B<rsa>) for RSA_NO_PADDING. 52The random number generator must be seeded prior to calling 53RSA_public_encrypt(). |
53 54RSA_private_decrypt() decrypts the B<flen> bytes at B<from> using the 55private key B<rsa> and stores the plaintext in B<to>. B<to> must point 56to a memory section large enough to hold the decrypted data (which is 57smaller than RSA_size(B<rsa>)). B<padding> is the padding mode that 58was used to encrypt the data. 59 60=head1 RETURN VALUES --- 23 unchanged lines hidden --- | 54 55RSA_private_decrypt() decrypts the B<flen> bytes at B<from> using the 56private key B<rsa> and stores the plaintext in B<to>. B<to> must point 57to a memory section large enough to hold the decrypted data (which is 58smaller than RSA_size(B<rsa>)). B<padding> is the padding mode that 59was used to encrypt the data. 60 61=head1 RETURN VALUES --- 23 unchanged lines hidden --- |