Decode a native‐endian unsigned byte string into a BIGNUM.

Synopsis

Declared in <openssl/bn.h>

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

Return Value

Result BIGNUM (same as ret when non‐NULL), or NULL on error.

Parameters

Name

Description

s

Input bytes in host endianness.

len

Number of bytes at s.

ret

Optional existing BIGNUM to reuse, or NULL to allocate.

Created with MrDocs