[#ECDSA_do_sign]
= ECDSA&lowbar;do&lowbar;sign
:mrdocs:

Computes the ECDSA signature of the given hash value using the supplied private key and returns the created signature&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
xref:ECDSA_SIG.adoc[ECDSA&lowbar;SIG]*
ECDSA&lowbar;do&lowbar;sign(
    unsigned char const* dgst,
    int dgst&lowbar;len,
    xref:EC_KEY.adoc[EC&lowbar;KEY]* eckey);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

pointer to a ECDSA&lowbar;SIG structure or NULL if an error occurred

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dgst*
| pointer to the hash value
| *dgst&lowbar;len*
| length of the hash value
| *eckey*
| EC&lowbar;KEY object containing a private EC key
|===


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