tweaked constantTime are equal to muddy the waters further if the arrays are not of equal length.
@@ -157,7 +157,7 @@ public static boolean constantTimeAreEqual(
if (a.length != b.length)
{
- return false;
+ return !((a.length > b.length) ? Arrays.constantTimeAreEqual(a, a) : Arrays.constantTimeAreEqual(b, b));
}
int nonEqual = 0;
