Digest the DER encoding of an ASN.1 structure using a supplied i2d encoder (deprecated).
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);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| i2d | Encoder function that serializes data to DER. |
| type | Message digest algorithm to apply to the DER encoding. |
| data | Pointer to the ASN.1 structure passed to i2d. |
| md | Output buffer receiving the digest. |
| len | Receives the digest length in bytes. |