EVP_DigestSignInit

Initialise ctx for a one-shot or streaming DigestSign with key pkey.

Synopsis

Declared in <openssl/evp.h>

int
EVP_DigestSignInit(
    EVP_MD_CTX* ctx,
    EVP_PKEY_CTX** pctx,
    EVP_MD const* type,
    ENGINE* e,
    EVP_PKEY* pkey);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxDigest/sign context to initialise.
pctxOptional out-parameter receiving the internal EVP_PKEY_CTX, or NULL.
typeDigest to use, or NULL for algorithms that do not take a separate MD.
eLegacy ENGINE, or NULL.
pkeyPrivate key used for signing.