ASN1_verify

Verify a signature over the DER encoding produced by i2d (deprecated).

Synopsis

Declared in <openssl/x509.h>

[[deprecated]]
int
ASN1_verify(
    i2d_of_void* i2d,
    X509_ALGOR* algor1,
    ASN1_BIT_STRING* signature,
    char* data,
    EVP_PKEY* pkey);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Description

Prefer ASN1_item_verify() for new code.

Return Value

1 if the signature verifies, 0 if it does not, or -1 on error.

Parameters

NameDescription
i2dEncoder that writes the signed bytes for data.
algor1Signature AlgorithmIdentifier describing the digest/signature pair.
signatureBIT STRING holding the signature value.
dataStructure passed to i2d as the object being signed.
pkeyPublic key used to verify the signature.