Home Manual Reference Source

References

summary
public
private

F _iadd(r: Number, N: Array, a: Array, b: Array): boolean

private

F _isub(r: Number, N: Array, a: Array, b: Array): boolean

private

F _montgomery(b: Number, N: Array): {"k": *, "M": *, "R": *, "R2": *, "R3": *}

N has no leading zeroes

private

F _mul(r: *, N: *, M: *, a: *, b: *, c: *): *

abR mod N = REDC((aR mod N)(bR mod N))

private

F _redc(b: *, k: *, N: *, Ni: *, Nj: *, M: *, Mi: *, Mj: *, T: *, Ti: *, Tj: *): boolean

Function REDC is

public

F modN(r: *, N: *, x: *): *

public

F modR(k: *, x: *): *

|x| >= k