[#EVP_DigestSignInit] = EVP_DigestSignInit :mrdocs: Initialise `ctx` for a one‐shot or streaming DigestSign with key `pkey.` == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_DigestSignInit( xref:EVP_MD_CTX.adoc[EVP_MD_CTX]* ctx, xref:EVP_PKEY_CTX.adoc[EVP_PKEY_CTX]** pctx, xref:EVP_MD.adoc[EVP_MD] const* type, xref:ENGINE.adoc[ENGINE]* e, xref:EVP_PKEY.adoc[EVP_PKEY]* pkey); ---- == Return Value 1 on success, or 0 on error. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Digest/sign context to initialise. | *pctx* | Optional out‐parameter receiving the internal EVP_PKEY_CTX, or NULL. | *type* | Digest to use, or NULL for algorithms that do not take a separate MD. | *e* | Legacy ENGINE, or NULL. | *pkey* | Private key used for signing. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#