[#EC_POINT_point2hex]
= EC&lowbar;POINT&lowbar;point2hex
:mrdocs:

Encode an EC point as a newly allocated hexadecimal octet string&period;

== Synopsis

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

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

== Return Value

NUL&hyphen;terminated hex string (caller must OPENSSL&lowbar;free), or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *group*
| Curve that defines the point encoding&period;
| *point*
| Point to encode&period;
| *form*
| Conversion form such as POINT&lowbar;CONVERSION&lowbar;UNCOMPRESSED&period;
| *ctx*
| BN&lowbar;CTX for temporary values, or NULL to allocate internally&period;
|===


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