[#EVP_PKEY_set_bn_param]
= EVP&lowbar;PKEY&lowbar;set&lowbar;bn&lowbar;param
:mrdocs:

Set a named BIGNUM parameter on an EVP&lowbar;PKEY&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;set&lowbar;bn&lowbar;param(
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pkey,
    char const* key&lowbar;name,
    xref:BIGNUM.adoc[BIGNUM] const* bn);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pkey*
| Key to update&period;
| *key&lowbar;name*
| Parameter name understood by the key type (OSSL&lowbar;PKEY&lowbar;PARAM&lowbar;&ast;)&period;
| *bn*
| Integer value to assign (copied&semi; caller retains ownership of `bn)&period;`
|===


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