From a627f00a3ffc9a013c2016bfb3d8c349501d9952 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 9 Jul 2017 20:23:00 -0700 Subject: [PATCH] poly1305: fix. --- lib/crypto/poly1305.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crypto/poly1305.js b/lib/crypto/poly1305.js index a3b96cf7..d6a3d632 100644 --- a/lib/crypto/poly1305.js +++ b/lib/crypto/poly1305.js @@ -109,7 +109,7 @@ Poly1305.prototype.blocks = function blocks(data, bytes, m) { if (j <= i) d[i] += this.r[i - j]; else - d[i] += 5 * this.r[i + 10 - j]); + d[i] += 5 * this.r[i + 10 - j]; // Sum(h[i] * r[i] * 5) will overflow slightly // above 6 products with an unclamped r, so