diff --git "a/\345\205\266\344\273\226\345\256\236\346\210\230/\343\200\220steam\343\200\221\350\207\252\345\212\250\347\231\273\345\275\225/execute.js" "b/\345\205\266\344\273\226\345\256\236\346\210\230/\343\200\220steam\343\200\221\350\207\252\345\212\250\347\231\273\345\275\225/execute.js" index 4699a16..f6f17c0 100644 --- "a/\345\205\266\344\273\226\345\256\236\346\210\230/\343\200\220steam\343\200\221\350\207\252\345\212\250\347\231\273\345\275\225/execute.js" +++ "b/\345\205\266\344\273\226\345\256\236\346\210\230/\343\200\220steam\343\200\221\350\207\252\345\212\250\347\231\273\345\275\225/execute.js" @@ -1189,6 +1189,7 @@ var navigator = {}; // x = x mod m (HAC 14.42) function barrettReduce(x) { + if (x.s < 0) { throw Error("Barrett reduction on negative input"); } x.drShiftTo(this.m.t - 1, this.r2); if (x.t > this.m.t + 1) { x.t = this.m.t + 1;