Initialize a digest‐verify operation with an explicit digest name and library context.

Synopsis

Declared in <openssl/evp.h>

int
EVP_DigestVerifyInit_ex(
    EVP_MD_CTX* ctx,
    EVP_PKEY_CTX** pctx,
    char const* mdname,
    OSSL_LIB_CTX* libctx,
    char const* props,
    EVP_PKEY* pkey,
    OSSL_PARAM const params[]);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

ctx

Digest context to initialize for verification.

pctx

Optional receiver for the internal EVP_PKEY_CTX, or NULL.

mdname

Digest algorithm name (for example "SHA256"), or NULL to use the key default.

libctx

Library context for algorithm fetches, or NULL for the default.

props

Property query string for fetches, or NULL.

pkey

Public key used to verify the signature.

params

Optional OSSL_PARAM array of algorithm parameters, or NULL.

Created with MrDocs