[#EVP_DigestSign] = EVP_DigestSign :mrdocs: Sign `tbs` in one call using a prepared DigestSign context. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_DigestSign( xref:EVP_MD_CTX.adoc[EVP_MD_CTX]* ctx, unsigned char* sigret, size_t* siglen, unsigned char const* tbs, size_t tbslen); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Context initialized with EVP_DigestSignInit(). | *sigret* | Output buffer for the signature, or NULL to query the required length. | *siglen* | On input, size of `sigret;` on output, signature length. | *tbs* | Message bytes to sign ("to be signed"). | *tbslen* | Length of `tbs` in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#