Skip to content

Commit ca4dd78

Browse files
authored
it will terminate early if expected.length != supplied.length
it will terminate early if expected.length != supplied.length
1 parent d010828 commit ca4dd78

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

core/src/main/java/org/bouncycastle/util/Arrays.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,6 @@ public static boolean constantTimeAreEqual(
156156
byte[] expected,
157157
byte[] supplied)
158158
{
159-
if (expected == supplied)
160-
{
161-
return true;
162-
}
163-
164159
if (expected == null || supplied == null)
165160
{
166161
return false;

0 commit comments

Comments
 (0)