[#EC_POINT_oct2point]
= EC&lowbar;POINT&lowbar;oct2point
:mrdocs:

Decodes a EC&lowbar;POINT from a octet string

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EC&lowbar;POINT&lowbar;oct2point(
    xref:EC_GROUP.adoc[EC&lowbar;GROUP] const* group,
    xref:EC_POINT.adoc[EC&lowbar;POINT]* p,
    unsigned char const* buf,
    size&lowbar;t len,
    xref:BN_CTX.adoc[BN&lowbar;CTX]* ctx);
----

== Return Value

1 on success and 0 if an error occurred

== Parameters

[cols="1,4"]
|===
| Name| Description
| *group*
| underlying EC&lowbar;GROUP object
| *p*
| EC&lowbar;POINT object
| *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]#
