CMS_digest_create

Create a CMS DigestedData ContentInfo from content read from a BIO.

Synopsis

Declared in <openssl/cms.h>

CMS_ContentInfo*
CMS_digest_create(
    BIO* in,
    EVP_MD const* md,
    unsigned int flags);

Return Value

New DigestedData ContentInfo, or NULL on error.

Parameters

NameDescription
inBIO supplying the data to digest.
mdMessage digest algorithm to apply.
flagsOptional CMS flags; CMS_DETACHED and CMS_STREAM are supported.