def mpow

bend-collections@1.0.0.0 · src/math/w64.bend:640

import bend-collections@1.0.0.0/src/math/w64.bend as W64
import Base
import bend-collections@1.0.0.0/src/math/u64.bend as W

640# b^e mod m for b < m and mont_ok(m)
641def mpow(+b: W.U64, +e: W.U64, +m: W.U64) -> W.U64:
642  mpow_m(b, e, m, minv(m))

Uses (3)

Used by (1)