EVP_VerifyFinal_ex

Verify a signature against the digest accumulated in ctx using pkey.

Synopsis

Declared in <openssl/evp.h>

int
EVP_VerifyFinal_ex(
    EVP_MD_CTX* ctx,
    unsigned char const* sigbuf,
    unsigned int siglen,
    EVP_PKEY* pkey,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

1 if the signature is valid, 0 if invalid, or a negative value on error.

Parameters

NameDescription
ctxDigest/verify context that has absorbed message data.
sigbufSignature bytes to verify.
siglenLength of sigbuf in bytes.
pkeyPublic key used for verification.
libctxLibrary context used when creating a context for pkey, or NULL for the default.
propqProperty query string for provider selection, or NULL.