Skip to content

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.

bigint

bigint

When modulus0 is even.