[#EVP_PKEY_CTX_set_ec_param_enc]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;set&lowbar;ec&lowbar;param&lowbar;enc
:mrdocs:

Select whether EC parameters are encoded as a named curve or explicitly&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;CTX&lowbar;set&lowbar;ec&lowbar;param&lowbar;enc(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    int param&lowbar;enc);
----

== Return Value

1 on success, or a negative value on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| EVP&lowbar;PKEY context for EC parameter or key generation&period;
| *param&lowbar;enc*
| OPENSSL&lowbar;EC&lowbar;NAMED&lowbar;CURVE or OPENSSL&lowbar;EC&lowbar;EXPLICIT&lowbar;CURVE&period;
|===


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