[#EVP_PKEY_CTX_get_keygen_info]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;get&lowbar;keygen&lowbar;info
:mrdocs:

Return a key&hyphen;generation progress info value previously published on `ctx&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;CTX&lowbar;get&lowbar;keygen&lowbar;info(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    int idx);
----

== Return Value

Info value at `idx,` or the count when `idx` is &hyphen;1&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Key context during or after keygen&period;
| *idx*
| Info index&semi; &hyphen;1 returns the number of available values&period;
|===


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