EVP_PKEY_CTX_get_rsa_oaep_md

Get the RSA-OAEP message-digest algorithm from an EVP_PKEY_CTX.

Synopsis

Declared in <openssl/rsa.h>

int
EVP_PKEY_CTX_get_rsa_oaep_md(
    EVP_PKEY_CTX* ctx,
    EVP_MD const** md);

Return Value

1 on success, or a negative value for unsupported / failure.

Parameters

NameDescription
ctxContext whose padding mode must be RSA_PKCS1_OAEP_PADDING.
mdReceives a pointer to the EVP_MD in use (do not free).