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

Name

Description

ctx

Digest/verify context that has absorbed the message via EVP_DigestUpdate().

sigbuf

Signature bytes to verify.

siglen

Length of sigbuf in bytes.

pkey

Public key used for verification.

Created with MrDocs