ASN1_INTEGER_to_BN

Convert an ASN.1 INTEGER to a BIGNUM (allocating or reusing bn).

Synopsis

Declared in <openssl/asn1.h>

BIGNUM*
ASN1_INTEGER_to_BN(
    ASN1_INTEGER const* ai,
    BIGNUM* bn);

Return Value

Pointer to the BIGNUM result (possibly newly allocated), or NULL on error.

Parameters

NameDescription
aiSource INTEGER (may be negative).
bnExisting BIGNUM to reuse, or NULL to allocate.