BN_set_word

Set BIGNUM a to the single-word value w.

Synopsis

Declared in <openssl/bn.h>

int
BN_set_word(
    BIGNUM* a,
    unsigned long w);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
aDestination BIGNUM.
wWord value to assign (non-negative).