[#ASN1_INTEGER_to_BN]
= ASN1&lowbar;INTEGER&lowbar;to&lowbar;BN
:mrdocs:

Convert an ASN&period;1 INTEGER to a BIGNUM (allocating or reusing `bn)&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BIGNUM.adoc[BIGNUM]*
ASN1&lowbar;INTEGER&lowbar;to&lowbar;BN(
    xref:ASN1_INTEGER.adoc[ASN1&lowbar;INTEGER] const* ai,
    xref:BIGNUM.adoc[BIGNUM]* bn);
----

== Return Value

Pointer to the BIGNUM result (possibly newly allocated), or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ai*
| Source INTEGER (may be negative)&period;
| *bn*
| Existing BIGNUM to reuse, or NULL to allocate&period;
|===


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