Skip to content

Commit

Permalink
fixed assignment of sum
Browse files Browse the repository at this point in the history
Signed-off-by: Sally MacFarlane <[email protected]>
  • Loading branch information
macfarla committed Apr 26, 2023
1 parent 06179c9 commit ccbdd7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public void setHsAndBitsFromBaseThetas(BaseTheta aBaseTheta, BaseTheta bBaseThet
long beta = getOverflow(sum, 3, "beta OOB");

prod = aBaseThetaInts[0].multiply(bBaseThetaInts[0]);
sum = sum.add(prod); // sum := a0 * b0
sum = prod; // sum := a0 * b0

prod = UInt256.fromBytes(hBytes.get(0)).shiftLeft(64);
sum = sum.add(prod); // sum += (h0 << 64)
Expand Down

0 comments on commit ccbdd7b

Please sign in to comment.