[#EVP_SignFinal]
= EVP&lowbar;SignFinal
:mrdocs:

Finish a legacy Sign operation and write the signature using `pkey&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;SignFinal(
    xref:EVP_MD_CTX.adoc[EVP&lowbar;MD&lowbar;CTX]* ctx,
    unsigned char* md,
    unsigned int* s,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pkey);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Digest&sol;sign context that has absorbed the message via EVP&lowbar;DigestUpdate()&period;
| *md*
| Output buffer for the signature&period;
| *s*
| Receives the signature length in bytes&period;
| *pkey*
| Private key used to produce the signature&period;
|===


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