CMS_final_digest

Finalize a partially built CMS SignedData using a precomputed content digest.

Synopsis

Declared in <openssl/cms.h>

int
CMS_final_digest(
    CMS_ContentInfo* cms,
    unsigned char const* md,
    unsigned int mdlen,
    BIO* dcont,
    unsigned int flags);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
cmsPartial CMS structure created with CMS_PARTIAL (or streaming) flags.
mdPrecomputed message digest of the content.
mdlenLength of md in bytes.
dcontDetached content BIO when applicable, or NULL.
flagsCMS finalization flags.