Additional fix to GOFB mode.
@@ -205,9 +205,12 @@ protected byte calculateByte(byte b)
N3 += C2;
N4 += C1;
if (N4 < C1) // addition is mod (2**32 - 1)
+ {
+ if (N4 > 0)
{
N4++;
}
+ }
intTobytes(N3, ofbV, 0);
intTobytes(N4, ofbV, 4);
