Convert len big‐endian unsigned bytes at s into a BIGNUM.

Synopsis

Declared in <openssl/bn.h>

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

Return Value

Result BIGNUM (possibly newly allocated), or NULL on error.

Parameters

Name

Description

s

Input byte string (most significant byte first).

len

Number of bytes at s.

ret

Existing BIGNUM to reuse, or NULL to allocate.

Created with MrDocs