W64.mont: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/src/math/w64.bend as W64 Lines 607-609 of bend-collections-laws-crypto@1.0.0.0/src/math/w64.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/w64.bend&start_line=607&end_line=609 import Base import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as W # a b / 2^64 mod m for a, b < m def mont(+m: W.U64, +mp: W.U64, +a: W.U64, +b: W.U64) -> W.U64: redc(m, mp, mul128(a, b)) Uses (3): https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend&name=U64 https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/w64.bend&name=mul128 https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/w64.bend&name=redc