EVP_DigestVerifyInit_ex

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

NameDescription
ctxDigest context to initialize for verification.
pctxOptional receiver for the internal EVP_PKEY_CTX, or NULL.
mdnameDigest algorithm name (for example "SHA256"), or NULL to use the key default.
libctxLibrary context for algorithm fetches, or NULL for the default.
propsProperty query string for fetches, or NULL.
pkeyPublic key used to verify the signature.
paramsOptional OSSL_PARAM array of algorithm parameters, or NULL.