[#EC_KEY_oct2key]
= EC&lowbar;KEY&lowbar;oct2key
:mrdocs:

Decodes a EC&lowbar;KEY public key from a 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;oct2key(
    xref:EC_KEY.adoc[EC&lowbar;KEY]* key,
    unsigned char const* buf,
    size&lowbar;t len,
    xref:BN_CTX.adoc[BN&lowbar;CTX]* ctx);
----

[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 ec point
| *len*
| length of the encoded ec point
| *ctx*
| BN&lowbar;CTX object (optional)
|===


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