Convert a BIGNUM to an ASN.1 INTEGER (allocating or reusing ai).
Declared in <openssl/asn1.h>
ASN1_INTEGER*
BN_to_ASN1_INTEGER(
BIGNUM const* bn,
ASN1_INTEGER* ai);
Pointer to the INTEGER result (possibly newly allocated), or NULL on error.
| Name | Description |
|---|---|
| bn | Source big integer (may be negative). |
| ai | Existing ASN1_INTEGER to reuse, or NULL to allocate. |