From 653dd9234624b75a607ea4f7f9d7add50b1a869e Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Mon, 4 May 2026 07:51:00 +0800 Subject: [PATCH] .yarn/releases/yarn-1.15.2.js: fix improper calculation in ECC --- .yarn/releases/yarn-1.15.2.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.yarn/releases/yarn-1.15.2.js b/.yarn/releases/yarn-1.15.2.js index 8a6eb5a18..04c2be94c 100755 --- a/.yarn/releases/yarn-1.15.2.js +++ b/.yarn/releases/yarn-1.15.2.js @@ -33905,6 +33905,7 @@ and limitations under the License. // 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