it will terminate early if expected.length != supplied.length
it will terminate early if expected.length != supplied.length
@@ -156,11 +156,6 @@ public static boolean constantTimeAreEqual(
byte[] expected,
byte[] supplied)
{
- if (expected == supplied)
- {
- return true;
- }
-
if (expected == null || supplied == null)
{
return false;
