powerMod

Modular exponentation

static if(BOTAN_HAS_PUBLIC_KEY_CRYPTO)
powerMod
()
(
auto const ref BigInt base
,
auto const ref BigInt exp
,
auto const ref BigInt mod
)

Parameters

base BigInt

an integer base b

exp BigInt

a positive exponent x

mod BigInt

a positive modulus m

Return Value

Type: BigInt

(b^x) % m

Meta