Finish a DigestVerify operation by checking sig against the digested data.

Synopsis

Declared in <openssl/evp.h>

int
EVP_DigestVerifyFinal(
    EVP_MD_CTX* ctx,
    unsigned char const* sig,
    size_t siglen);

Return Value

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

Parameters

Name

Description

ctx

Context initialized with EVP_DigestVerifyInit() and updated with the message.

sig

Signature bytes to verify.

siglen

Length of sig in bytes.

Created with MrDocs