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