BN_signed_bin2bn

Convert a big-endian two's-complement byte array to a signed BIGNUM.

Synopsis

Declared in <openssl/bn.h>

BIGNUM*
BN_signed_bin2bn(
    unsigned char const* s,
    int len,
    BIGNUM* ret);

Return Value

Result BIGNUM, or NULL on error.

Parameters

NameDescription
sInput octets in big-endian two's-complement form.
lenNumber of bytes at s.
retDestination BIGNUM to reuse, or NULL to allocate a new one.