EVP_DigestVerifyInit

Initialise ctx for a DigestVerify operation with public key pkey.

Synopsis

Declared in <openssl/evp.h>

int
EVP_DigestVerifyInit(
    EVP_MD_CTX* ctx,
    EVP_PKEY_CTX** pctx,
    EVP_MD const* type,
    ENGINE* e,
    EVP_PKEY* pkey);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxDigest/verify context to initialise.
pctxOptional out-parameter receiving the internal EVP_PKEY_CTX, or NULL.
typeDigest to use, or NULL for algorithms that do not take a separate MD.
eLegacy ENGINE, or NULL.
pkeyPublic key used for verification.