EVP_PKEY_CTX_get_rsa_mgf1_md_name

Get the MGF1 digest algorithm name from an RSA EVP_PKEY_CTX.

Synopsis

Declared in <openssl/rsa.h>

int
EVP_PKEY_CTX_get_rsa_mgf1_md_name(
    EVP_PKEY_CTX* ctx,
    char* name,
    size_t namelen);

Return Value

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

Parameters

NameDescription
ctxContext whose padding mode uses MGF1 (PSS or OAEP).
nameBuffer receiving the NUL-terminated digest name.
namelenCapacity of name in bytes.