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

Name

Description

ctx

RSA key context.

md

Receives a pointer to the digest method (do not free).

Created with MrDocs