inverseMod

Modular inversion

static if(BOTAN_HAS_PUBLIC_KEY_CRYPTO)
inverseMod
(
const(BigInt)* n
,
const(BigInt)* mod
)

Parameters

n const(BigInt)*

a positive integer x

mod const(BigInt)*

a positive integer modulus

Return Value

Type: BigInt

y st (x*y) % modulus == 1

Meta