Encode the absolute value of a as a minimal big‐endian unsigned byte string.

Synopsis

Declared in <openssl/bn.h>

int
BN_bn2bin(
    BIGNUM const* a,
    unsigned char* to);

Return Value

Number of bytes written.

Parameters

Name

Description

a

Value to encode (sign is ignored).

to

Destination buffer of at least BN_num_bytes(a) bytes.

Created with MrDocs