[#EC_POINT_hex2point]
= EC&lowbar;POINT&lowbar;hex2point
:mrdocs:

Decode an EC point from a hex&hyphen;encoded octet string&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EC_POINT.adoc[EC&lowbar;POINT]*
EC&lowbar;POINT&lowbar;hex2point(
    xref:EC_GROUP.adoc[EC&lowbar;GROUP] const* group,
    char const* hex,
    xref:EC_POINT.adoc[EC&lowbar;POINT]* point,
    xref:BN_CTX.adoc[BN&lowbar;CTX]* ctx);
----

== Return Value

The resulting EC&lowbar;POINT, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *group*
| Curve that defines the point encoding&period;
| *hex*
| NUL&hyphen;terminated hexadecimal encoding of the point octets&period;
| *point*
| Existing point to overwrite, or NULL to allocate a new one&period;
| *ctx*
| BN&lowbar;CTX for temporary BIGNUMs, or NULL to allocate internally&period;
|===


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