[#PKCS7_set_digest]
= PKCS7&lowbar;set&lowbar;digest
:mrdocs:

Set the message&hyphen;digest algorithm on a DigestedData PKCS&num;7 structure&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS7&lowbar;set&lowbar;digest(
    xref:PKCS7.adoc[PKCS7]* p7,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* md);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p7*
| PKCS&num;7 object of type digestedData&period;
| *md*
| Digest method to record in the DigestedData AlgorithmIdentifier&period;
|===


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