Digest the ASN.1 encoding of data as described by it.

Synopsis

Declared in <openssl/x509.h>

int
ASN1_item_digest(
    ASN1_ITEM const* it,
    EVP_MD const* type,
    void* data,
    unsigned char* md,
    unsigned int* len);

Return Value

  • 1 on success, or 0 on failure.

  • 1 on success, or 0 on failure.

Parameters

Name

Description

it

ASN.1 item describing the type of data.

type

Digest algorithm used to hash the DER encoding.

data

Structure to encode and digest.

md

Buffer that receives the digest bytes (at least EVP_MD_size(type)).

len

Receives the digest length in bytes.

Created with MrDocs