[#BN_native2bn]
= BN&lowbar;native2bn
:mrdocs:

Decode a native&hyphen;endian unsigned byte string into a BIGNUM&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BIGNUM.adoc[BIGNUM]*
BN&lowbar;native2bn(
    unsigned char const* s,
    int len,
    xref:BIGNUM.adoc[BIGNUM]* ret);
----

== Return Value

Result BIGNUM (same as `ret` when non&hyphen;NULL), or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Input bytes in host endianness&period;
| *len*
| Number of bytes at `s&period;`
| *ret*
| Optional existing BIGNUM to reuse, or NULL to allocate&period;
|===


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