ASN1_item_verify

Verify signature over the ASN.1 encoding of data described by it.

Synopsis

Declared in <openssl/x509.h>

int
ASN1_item_verify(
    ASN1_ITEM const* it,
    X509_ALGOR const* alg,
    ASN1_BIT_STRING const* signature,
    void const* data,
    EVP_PKEY* pkey);

Return Value

1 if the signature is valid, or 0 / a negative value on failure.

Parameters

NameDescription
itASN.1 item describing the signed structure type of data.
algSignature AlgorithmIdentifier.
signatureBIT STRING signature value.
dataPointer to the structure instance to re-encode and verify.
pkeyPublic key used for verification.