Added synchronization for Encryption methods.

This commit is contained in:
MobiusDevelopment
2022-11-27 02:13:41 +00:00
parent 6b3d46800b
commit e11f49d2d8
31 changed files with 1178 additions and 992 deletions

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[2] = (byte) ((old >> 16) & 0xff); _outKey[2] = (byte) ((old >> 16) & 0xff);
_outKey[3] = (byte) ((old >> 24) & 0xff); _outKey[3] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[2] = (byte) ((old >> 16) & 0xff); _inKey[2] = (byte) ((old >> 16) & 0xff);
_inKey[3] = (byte) ((old >> 24) & 0xff); _inKey[3] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }

View File

@@ -42,6 +42,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_outKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -61,6 +63,7 @@ public class Encryption implements EncryptionInterface
_outKey[10] = (byte) ((old >> 16) & 0xff); _outKey[10] = (byte) ((old >> 16) & 0xff);
_outKey[11] = (byte) ((old >> 24) & 0xff); _outKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
@Override @Override
public void decrypt(byte[] data, int offset, int size) public void decrypt(byte[] data, int offset, int size)
@@ -70,6 +73,8 @@ public class Encryption implements EncryptionInterface
return; return;
} }
synchronized (_inKey)
{
int a = 0; int a = 0;
for (int i = 0; i < size; i++) for (int i = 0; i < size; i++)
{ {
@@ -89,4 +94,5 @@ public class Encryption implements EncryptionInterface
_inKey[10] = (byte) ((old >> 16) & 0xff); _inKey[10] = (byte) ((old >> 16) & 0xff);
_inKey[11] = (byte) ((old >> 24) & 0xff); _inKey[11] = (byte) ((old >> 24) & 0xff);
} }
}
} }