EVP_PKEY_CTX_get_rsa_mgf1_md

Get the MGF1 digest configured for RSA-PSS or RSA-OAEP on a key context.

Synopsis

Declared in <openssl/rsa.h>

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

Return Value

1 on success, or a non-positive value on failure.

Parameters

NameDescription
ctxRSA key context.
mdReceives a pointer to the digest method (do not free).