Verify a signature over tbs using an initialised key context.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_verify(
    EVP_PKEY_CTX* ctx,
    unsigned char const* sig,
    size_t siglen,
    unsigned char const* tbs,
    size_t tbslen);

Return Value

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

Parameters

Name

Description

ctx

Context previously prepared with EVP_PKEY_verify_init() or _ex().

sig

Signature bytes to verify.

siglen

Length of sig in bytes.

tbs

Data that was signed (typically a digest or raw message).

tbslen

Length of tbs in bytes.

Created with MrDocs