[#EC_POINT_point2bn]
= EC&lowbar;POINT&lowbar;point2bn
:mrdocs:

Encode an EC point as a BIGNUM holding the SEC1 octet form (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
xref:BIGNUM.adoc[BIGNUM]*
EC&lowbar;POINT&lowbar;point2bn(
    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:BIGNUM.adoc[BIGNUM]* bn,
    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

Pointer to the result BIGNUM (same as `bn` when non&hyphen;NULL), or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *group*
| Curve that defines `point&period;`
| *point*
| Point to encode&period;
| *form*
| Conversion form passed to EC&lowbar;POINT&lowbar;point2oct()&period;
| *bn*
| Optional BIGNUM to reuse for the result, or NULL to allocate one&period;
| *ctx*
| BN&lowbar;CTX for temporary values, or NULL&period;
|===


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