Set the message digest used when signing or verifying with ctx.
Declared in <openssl/evp.h>
int
EVP_PKEY_CTX_set_signature_md(
EVP_PKEY_CTX* ctx,
EVP_MD const* md);
1 on success, or a non-positive value on error.
| Name | Description |
|---|---|
| ctx | Key context configured for a signature operation. |
| md | Digest algorithm (for example EVP_sha256()), or NULL to clear. |