inverseMod

Modular inversion

static if(BOTAN_HAS_PUBLIC_KEY_CRYPTO)
inverseMod
()
(
auto const ref BigInt n
,
auto const ref BigInt mod
)

Parameters

n BigInt

a positive integer x

mod BigInt

a positive integer modulus

Return Value

Type: BigInt

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

Meta