[#OSSL_PARAM_set_BN]
= OSSL&lowbar;PARAM&lowbar;set&lowbar;BN
:mrdocs:

Encode a BIGNUM into an unsigned&hyphen;integer OSSL&lowbar;PARAM buffer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;PARAM&lowbar;set&lowbar;BN(
    xref:OSSL_PARAM.adoc[OSSL&lowbar;PARAM]* p,
    xref:BIGNUM.adoc[BIGNUM] const* val);
----

== Return Value

1 on success, or 0 on error (including a negative `val)&period;`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| Parameter whose buffer receives the unsigned big&hyphen;endian form of `val&period;`
| *val*
| Non&hyphen;negative BIGNUM to store&semi; must fit in `&apos;s` declared buffer size&period;
|===


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