Skip to content

montgomeryRSquared

montgomeryRSquared(modulus, words): bigint

Defined in: kernel/common/montgomery-r-squared.ts:5

R² mod modulus, where R = 2^(64 × words) — the constant that converts a value into Montgomery form. Computed once per modulus from public data.

bigint

number

bigint