Finalize a partially built CMS SignedData using a precomputed content digest.
Declared in <openssl/cms.h>
int
CMS_final_digest(
CMS_ContentInfo* cms,
unsigned char const* md,
unsigned int mdlen,
BIO* dcont,
unsigned int flags);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| cms | Partial CMS structure created with CMS_PARTIAL (or streaming) flags. |
| md | Precomputed message digest of the content. |
| mdlen | Length of md in bytes. |
| dcont | Detached content BIO when applicable, or NULL. |
| flags | CMS finalization flags. |