Decrypt flen ciphertext bytes with RSA private key rsa (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_private_decrypt(
    int flen,
    unsigned char const* from,
    unsigned char* to,
    RSA* rsa,
    int padding);
Warning

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Length of the recovered plaintext, or a negative value on error.

Parameters

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.

Created with MrDocs