powerMod

Modular exponentation

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

Parameters

base const(BigInt)*

an integer base b

exp const(BigInt)*

a positive exponent x

mod const(BigInt)*

a positive modulus m

Return Value

Type: BigInt

(b^x) % m

Meta