Decrypt flen ciphertext bytes with RSA private key rsa (deprecated).
Declared in <openssl/rsa.h>
[[deprecated]]
int
RSA_private_decrypt(
int flen,
unsigned char const* from,
unsigned char* to,
RSA* rsa,
int padding);
Deprecated. Use of this entity is allowed but discouraged.
Length of the recovered plaintext, or a negative value on error.
| Name | Description |
|---|---|
| flen | Length of from in bytes (typically RSA_size(rsa)). |
| from | Ciphertext produced by RSA_public_encrypt() (or equivalent). |
| to | Output buffer large enough for the recovered plaintext. |
| rsa | RSA private key. |
| padding | Padding mode that was used when encrypting. |