[#EC_KEY_oct2priv]
= EC&lowbar;KEY&lowbar;oct2priv
:mrdocs:

Decodes an EC&lowbar;KEY private key from an octet string

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
EC&lowbar;KEY&lowbar;oct2priv(
    xref:EC_KEY.adoc[EC&lowbar;KEY]* key,
    unsigned char const* buf,
    size&lowbar;t len);
----

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

1 on success and 0 if an error occurred

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key to decode
| *buf*
| memory buffer with the encoded private key
| *len*
| length of the encoded key
|===


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