Decrypt a session key with a private key using the legacy EVP_PKEY path (deprecated).
Synopsis
Declared in <openssl/evp.h>
[[deprecated]]
int
EVP_PKEY_decrypt_old(
unsigned char* dec_key,
unsigned char const* enc_key,
int enc_key_len,
EVP_PKEY* private_key);
|
Warning
|
Deprecated. Use of this entity is allowed but discouraged. |
Return Value
Length of decrypted key on success, or a negative value on failure.
Parameters
Name |
Description |
dec_key |
Output buffer for the recovered plaintext key material. |
enc_key |
Encrypted key bytes. |
enc_key_len |
Length of |
private_key |
Private key used for decryption. |
Created with MrDocs