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

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.

Created with MrDocs