Skip to content

Commit 363a9da

Browse files
committed
removed overlap check (unsafe)
1 parent 33f4ae5 commit 363a9da

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/main/java/org/bouncycastle/crypto/DefaultMultiBlockCipher.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.bouncycastle.crypto;
22

3-
import org.bouncycastle.util.Arrays;
4-
53
public abstract class DefaultMultiBlockCipher
64
implements MultiBlockCipher
75
{
@@ -23,7 +21,7 @@ public int processBlocks(byte[] in, int inOff, int blockCount, byte[] out, int o
2321
int resultLen = 0;
2422
int blockSize = this.getBlockSize();
2523
int len = blockCount * blockSize;
26-
if (in == out && Arrays.segmentsOverlap(inOff, len, outOff, len))
24+
if (in == out)
2725
{
2826
in = new byte[len];
2927
System.arraycopy(out, inOff, in, 0, len);

0 commit comments

Comments
 (0)