ASN1_digest

Digest the DER encoding of an ASN.1 structure using a supplied i2d encoder (deprecated).

Synopsis

Declared in <openssl/x509.h>

[[deprecated]]
int
ASN1_digest(
    i2d_of_void* i2d,
    EVP_MD const* type,
    char* data,
    unsigned char* md,
    unsigned int* len);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
i2dEncoder function that serializes data to DER.
typeMessage digest algorithm to apply to the DER encoding.
dataPointer to the ASN.1 structure passed to i2d.
mdOutput buffer receiving the digest.
lenReceives the digest length in bytes.