References
summary | ||
public |
|
|
private |
|
|
private |
|
|
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 |
Function REDC is |
|
public |
F modN(r: *, N: *, x: *): * |
|
public |
F modR(k: *, x: *): * |x| >= k |