[#EC_GROUP_to_params]
= EC&lowbar;GROUP&lowbar;to&lowbar;params
:mrdocs:

Creates an OSSL&lowbar;PARAM array with the parameters describing the given EC&lowbar;GROUP&period; The resulting parameters may contain an explicit or a named curve depending on the EC&lowbar;GROUP&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OSSL_PARAM.adoc[OSSL&lowbar;PARAM]*
EC&lowbar;GROUP&lowbar;to&lowbar;params(
    xref:EC_GROUP.adoc[EC&lowbar;GROUP] const* group,
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* propq,
    xref:BN_CTX.adoc[BN&lowbar;CTX]* bnctx);
----

== Return Value

newly created OSSL&lowbar;PARAM array with the parameters describing the given EC&lowbar;GROUP or NULL if an error occurred

== Parameters

[cols="1,4"]
|===
| Name| Description
| *group*
| pointer to the EC&lowbar;GROUP object
| *libctx*
| The associated library context or NULL for the default context
| *propq*
| A property query string
| *bnctx*
| BN&lowbar;CTX object (optional)
|===


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