BN_div_recp

Divide m by the reciprocal modulus in recp, producing quotient and remainder.

Synopsis

Declared in <openssl/bn.h>

int
BN_div_recp(
    BIGNUM* dv,
    BIGNUM* rem,
    BIGNUM const* m,
    BN_RECP_CTX* recp,
    BN_CTX* ctx);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
dvDestination for the quotient, or NULL if not required.
remDestination for the remainder, or NULL if not required.
mDividend.
recpReciprocal context previously set up for the divisor.
ctxBN_CTX for temporaries.