Set the message digest used when signing or verifying with ctx.

Synopsis

Declared in <openssl/evp.h>

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

Digest algorithm (for example EVP_sha256()), or NULL to clear.

Created with MrDocs