EVP_VerifyFinal

Finish a verify operation by checking sigbuf against the digested data.

Synopsis

Declared in <openssl/evp.h>

int
EVP_VerifyFinal(
    EVP_MD_CTX* ctx,
    unsigned char const* sigbuf,
    unsigned int siglen,
    EVP_PKEY* pkey);

Return Value

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

Parameters

NameDescription
ctxDigest/verify context that has absorbed the message via EVP_DigestUpdate().
sigbufSignature bytes to verify.
siglenLength of sigbuf in bytes.
pkeyPublic key used for verification.