CMS_digest_create_ex

Create a CMS DigestedData ContentInfo using a library context and property query.

Synopsis

Declared in <openssl/cms.h>

CMS_ContentInfo*
CMS_digest_create_ex(
    BIO* in,
    EVP_MD const* md,
    unsigned int flags,
    OSSL_LIB_CTX* libctx,
    char const* propq);

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.
libctxLibrary context for algorithm fetches, or NULL for the default.
propqProperty query for provider selection, or NULL.