[#EC_KEY_set_public_key_affine_coordinates]
= EC&lowbar;KEY&lowbar;set&lowbar;public&lowbar;key&lowbar;affine&lowbar;coordinates
:mrdocs:

Sets a public key from affine coordinates performing necessary NIST PKV tests&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
EC&lowbar;KEY&lowbar;set&lowbar;public&lowbar;key&lowbar;affine&lowbar;coordinates(
    xref:EC_KEY.adoc[EC&lowbar;KEY]* key,
    xref:BIGNUM.adoc[BIGNUM]* x,
    xref:BIGNUM.adoc[BIGNUM]* y);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 on success and 0 otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| the EC&lowbar;KEY object
| *x*
| public key x coordinate
| *y*
| public key y coordinate
|===


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