Fastest modular exponentiation in JavaScript

后端 未结 4 1573
余生分开走
余生分开走 2021-02-01 09:38

My problem is to compute (g^x) mod p quickly in JavaScript, where ^ is exponentiation, mod is the modulo operation. All inputs are nonnega

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-01 10:22

    Try this Montgomery modular reduction from http://code.google.com/p/bi2php/ on JavaScript.

提交回复
热议问题