EVP_DigestSignInit_ex

Initialise a digest-sign operation using a digest name and library context.

Synopsis

Declared in <openssl/evp.h>

int
EVP_DigestSignInit_ex(
    EVP_MD_CTX* ctx,
    EVP_PKEY_CTX** pctx,
    char const* mdname,
    OSSL_LIB_CTX* libctx,
    char const* props,
    EVP_PKEY* pkey,
    OSSL_PARAM const params[]);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxMessage-digest context that will accumulate data to sign.
pctxOptional address receiving the EVP_PKEY_CTX used for signing, or NULL.
mdnameDigest algorithm name (for example "SHA256"), or NULL for the key default.
libctxLibrary context for algorithm fetches, or NULL for the default.
propsProperty query for algorithm fetches, or NULL.
pkeyPrivate key used to create the signature.
paramsOptional parameter array terminated by OSSL_PARAM_END, or NULL.