[#EVP_DigestSignFinal]
= EVP&lowbar;DigestSignFinal
:mrdocs:

Finalize a DigestSign operation and write the signature&period;

== Synopsis

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

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

== Return Value

1 on success, or 0 &sol; a negative value on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Context initialized with EVP&lowbar;DigestSignInit and updated with EVP&lowbar;DigestSignUpdate&period;
| *sigret*
| Buffer receiving the signature, or NULL to only query the required length&period;
| *siglen*
| On entry, size of `sigret&semi;` on exit, signature length (or required size)&period;
|===


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