OSSL_PARAM_set_BN

Encode a BIGNUM into an unsigned-integer OSSL_PARAM buffer.

Synopsis

Declared in <openssl/params.h>

int
OSSL_PARAM_set_BN(
    OSSL_PARAM* p,
    BIGNUM const* val);

Return Value

1 on success, or 0 on error (including a negative val).

Parameters

NameDescription
pParameter whose buffer receives the unsigned big-endian form of val.
valNon-negative BIGNUM to store; must fit in 's declared buffer size.