Set the message digest used by RSA‐OAEP padding on a key context.

Synopsis

Declared in <openssl/rsa.h>

int
EVP_PKEY_CTX_set_rsa_oaep_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

Encrypt/decrypt context for an RSA key using OAEP.

md

OAEP hash algorithm (for example EVP_sha256()).

Created with MrDocs