Retrieve the message digest currently configured for signing or verifying with ctx.

Synopsis

Declared in <openssl/evp.h>

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

Return Value

1 on success, or a non‐positive value on error.

Parameters

Name

Description

ctx

Key context configured for a signature operation.

md

Set to the digest algorithm previously set with EVP_PKEY_CTX_set_signature_md(), or NULL if unset.

Created with MrDocs