[#EVP_DigestSign]
= EVP&lowbar;DigestSign
:mrdocs:

Sign `tbs` in one call using a prepared DigestSign context&period;

== Synopsis

Declared in `&lt;openssl&sol;evp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;DigestSign(
    xref:EVP_MD_CTX.adoc[EVP&lowbar;MD&lowbar;CTX]* ctx,
    unsigned char* sigret,
    size&lowbar;t* siglen,
    unsigned char const* tbs,
    size&lowbar;t tbslen);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Context initialized with EVP&lowbar;DigestSignInit()&period;
| *sigret*
| Output buffer for the signature, or NULL to query the required length&period;
| *siglen*
| On input, size of `sigret&semi;` on output, signature length&period;
| *tbs*
| Message bytes to sign (&quot;to be signed&quot;)&period;
| *tbslen*
| Length of `tbs` in bytes&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
