[#ASN1_digest]
= ASN1&lowbar;digest
:mrdocs:

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

== Synopsis

Declared in `&lt;openssl&sol;x509&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
ASN1&lowbar;digest(
    xref:i2d_of_void.adoc[i2d&lowbar;of&lowbar;void]* i2d,
    xref:EVP_MD.adoc[EVP&lowbar;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&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *i2d*
| Encoder function that serializes `data` to DER&period;
| *type*
| Message digest algorithm to apply to the DER encoding&period;
| *data*
| Pointer to the ASN&period;1 structure passed to `i2d&period;`
| *md*
| Output buffer receiving the digest&period;
| *len*
| Receives the digest length in bytes&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
