BN_BLINDING_new

Allocate a BN_BLINDING object from blinding factors A and A^-1 mod mod.

Synopsis

Declared in <openssl/bn.h>

BN_BLINDING*
BN_BLINDING_new(
    BIGNUM const* A,
    BIGNUM const* Ai,
    BIGNUM* mod);

Return Value

New BN_BLINDING, or NULL on error; free with BN_BLINDING_free().

Parameters

NameDescription
ABlinding multiplier (may be freshly generated by the caller).
AiModular inverse of A modulo mod.
modModulus copied into the new blinding object.