[#ASN1_digest] = ASN1_digest :mrdocs: Digest the DER encoding of an ASN.1 structure using a supplied i2d encoder (deprecated). == Synopsis Declared in `<openssl/x509.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int ASN1_digest( xref:i2d_of_void.adoc[i2d_of_void]* i2d, xref:EVP_MD.adoc[EVP_MD] const* type, char* data, unsigned char* md, unsigned int* len); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#