montgomeryN0Inv
montgomeryN0Inv(
modulus0):bigint
Defined in: kernel/common/montgomery-n0-inv.ts:10
-modulus₀⁻¹ mod 2⁶⁴ — the Montgomery constant tied to a modulus’s least
significant limb. Computed once per modulus from public data via Newton’s
iteration for inverses mod a power of two; the modulus must be odd.
Parameters
Section titled “Parameters”modulus0
Section titled “modulus0”bigint
Returns
Section titled “Returns”bigint
Throws
Section titled “Throws”When modulus0 is even.