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

Name

Description

p

Parameter whose buffer receives the unsigned big‐endian form of val.

val

Non‐negative BIGNUM to store; must fit in 's declared buffer size.

Created with MrDocs