Convert a little‐endian two's‐complement byte array to a signed BIGNUM.

Synopsis

Declared in <openssl/bn.h>

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

Return Value

Result BIGNUM, or NULL on error.

Parameters

Name

Description

s

Little‐endian two's‐complement input octets.

len

Number of bytes at s.

ret

Destination BIGNUM to reuse, or NULL to allocate a new one.

Created with MrDocs