[#EVP_DigestSignInit_ex] = EVP_DigestSignInit_ex :mrdocs: Initialise a digest‐sign operation using a digest name and library context. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_DigestSignInit_ex( xref:EVP_MD_CTX.adoc[EVP_MD_CTX]* ctx, xref:EVP_PKEY_CTX.adoc[EVP_PKEY_CTX]** pctx, char const* mdname, xref:OSSL_LIB_CTX.adoc[OSSL_LIB_CTX]* libctx, char const* props, xref:EVP_PKEY.adoc[EVP_PKEY]* pkey, xref:OSSL_PARAM.adoc[OSSL_PARAM] const params[]); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Message‐digest context that will accumulate data to sign. | *pctx* | Optional address receiving the EVP_PKEY_CTX used for signing, or NULL. | *mdname* | Digest algorithm name (for example "SHA256"), or NULL for the key default. | *libctx* | Library context for algorithm fetches, or NULL for the default. | *props* | Property query for algorithm fetches, or NULL. | *pkey* | Private key used to create the signature. | *params* | Optional parameter array terminated by OSSL_PARAM_END, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#