[#EC_POINT_add]
= EC&lowbar;POINT&lowbar;add
:mrdocs:

Computes the sum of two EC&lowbar;POINT

== Synopsis

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

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

== Return Value

1 on success and 0 if an error occurred

== Parameters

[cols="1,4"]
|===
| Name| Description
| *group*
| underlying EC&lowbar;GROUP object
| *r*
| EC&lowbar;POINT object for the result (r &equals; a &plus; b)
| *a*
| EC&lowbar;POINT object with the first summand
| *b*
| EC&lowbar;POINT object with the second summand
| *ctx*
| BN&lowbar;CTX object (optional)
|===


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