[#EC_POINT_point2buf]
= EC&lowbar;POINT&lowbar;point2buf
:mrdocs:

Encodes an EC&lowbar;POINT object to an allocated octet string

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
size&lowbar;t
EC&lowbar;POINT&lowbar;point2buf(
    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,
    unsigned char** pbuf,
    xref:BN_CTX.adoc[BN&lowbar;CTX]* ctx);
----

== Return Value

the length of the encoded octet string or 0 if an error occurred

== Parameters

[cols="1,4"]
|===
| Name| Description
| *group*
| underlying EC&lowbar;GROUP object
| *point*
| EC&lowbar;POINT object
| *form*
| point conversion form
| *pbuf*
| returns pointer to allocated buffer
| *ctx*
| BN&lowbar;CTX object (optional)
|===


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