Skip to content

Commit 1320840

Browse files
author
gefeili
committed
Remove unnecessary variable in processBytes of ElephantEngine
1 parent f1824fe commit 1320840

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

core/src/main/java/org/bouncycastle/crypto/engines/ElephantEngine.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,6 @@ private int processBytes(byte[] m, byte[] output, int outOff, int nb_it, int nbl
636636
int rv = 0;
637637
byte[] outputMessage = new byte[BLOCK_SIZE];
638638
int i;
639-
int mlen_remaining = mlen;
640639
for (i = nb_its; i < nb_it; ++i)
641640
{
642641
int r_size = (i == nblocks_m - 1) ? mlen - i * BLOCK_SIZE : BLOCK_SIZE;
@@ -670,7 +669,6 @@ private int processBytes(byte[] m, byte[] output, int outOff, int nb_it, int nbl
670669

671670
outOff += r_size;
672671
rv += r_size;
673-
mlen_remaining -= r_size;
674672
}
675673
if (i > 0 && i <= nblocks_c)
676674
{

0 commit comments

Comments
 (0)