poly1305: fix.

This commit is contained in:
Christopher Jeffrey 2017-07-09 20:23:00 -07:00
parent 6893d5aa99
commit a627f00a3f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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