Verify signature over the ASN.1 encoding of data using digest context ctx.

Synopsis

Declared in <openssl/x509.h>

int
ASN1_item_verify_ctx(
    ASN1_ITEM const* it,
    X509_ALGOR const* alg,
    ASN1_BIT_STRING const* signature,
    void const* data,
    EVP_MD_CTX* ctx);

Return Value

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

Parameters

Name

Description

it

ASN.1 item describing the signed structure type of data.

alg

Signature AlgorithmIdentifier.

signature

BIT STRING signature value.

data

Pointer to the structure instance to re‐encode and verify.

ctx

Digest/verify context already configured with the public key and algorithm.

Created with MrDocs