[#EC_POINT_is_on_curve]
= EC&lowbar;POINT&lowbar;is&lowbar;on&lowbar;curve
:mrdocs:

Checks whether the point is on the curve

== Synopsis

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

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

== Return Value

1 if the point is on the curve, 0 if not, or &hyphen;1 on error

== Parameters

[cols="1,4"]
|===
| Name| Description
| *group*
| underlying EC&lowbar;GROUP object
| *point*
| EC&lowbar;POINT object to check
| *ctx*
| BN&lowbar;CTX object (optional)
|===


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