[#CMS_digest_create]
= CMS&lowbar;digest&lowbar;create
:mrdocs:

Create a CMS DigestedData ContentInfo from content read from a BIO&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CMS_ContentInfo.adoc[CMS&lowbar;ContentInfo]*
CMS&lowbar;digest&lowbar;create(
    xref:BIO.adoc[BIO]* in,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* md,
    unsigned int flags);
----

== Return Value

New DigestedData ContentInfo, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *in*
| BIO supplying the data to digest&period;
| *md*
| Message digest algorithm to apply&period;
| *flags*
| Optional CMS flags&semi; CMS&lowbar;DETACHED and CMS&lowbar;STREAM are supported&period;
|===


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