[#CMS_final_digest]
= CMS&lowbar;final&lowbar;digest
:mrdocs:

Finalize a partially built CMS SignedData using a precomputed content digest&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;final&lowbar;digest(
    xref:CMS_ContentInfo.adoc[CMS&lowbar;ContentInfo]* cms,
    unsigned char const* md,
    unsigned int mdlen,
    xref:BIO.adoc[BIO]* dcont,
    unsigned int flags);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cms*
| Partial CMS structure created with CMS&lowbar;PARTIAL (or streaming) flags&period;
| *md*
| Precomputed message digest of the content&period;
| *mdlen*
| Length of `md` in bytes&period;
| *dcont*
| Detached content BIO when applicable, or NULL&period;
| *flags*
| CMS finalization flags&period;
|===


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