OSSL_PARAM_BLD_push_BN_pad

Append a BIGNUM parameter padded to exactly sz bytes (by reference until to_param).

Synopsis

Declared in <openssl/param_build.h>

int
OSSL_PARAM_BLD_push_BN_pad(
    OSSL_PARAM_BLD* bld,
    char const* key,
    BIGNUM const* bn,
    size_t sz);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
bldParameter builder.
keyParameter name string.
bnNon-negative BIGNUM to store.
szExact encoded size in bytes; fails if bn does not fit.