Added synchronization for Encryption methods.
This commit is contained in:
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[2] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[3] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[2] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[3] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_outKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
|
||||
_outKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_outKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrypt(byte[] data, int offset, int size)
|
||||
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (_inKey)
|
||||
{
|
||||
int a = 0;
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
|
||||
_inKey[10] = (byte) ((old >> 16) & 0xff);
|
||||
_inKey[11] = (byte) ((old >> 24) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user