fix Trypt scramble (it did nothing, ever since its introduction)
This commit is contained in:
parent
3df73ec4f6
commit
5df99b9b26
1 changed files with 10 additions and 4 deletions
|
@ -39,8 +39,11 @@ public class Trypt {
|
|||
output[newLocation + 1] = (byte) (old ^ salt ^ key[(i++ ^ cRandE.nextInt(0x7fffffff)) % key.length]);
|
||||
}
|
||||
|
||||
for (byte b = 0; b < input[cRandE.nextInt(input.length)]; b++) {
|
||||
cRandE.nextLong();
|
||||
for (int i = 0; i < scramble; i++) {
|
||||
byte b = input[cRandE.nextInt(input.length)];
|
||||
for (int j = 0; j < b; j++) {
|
||||
cRandE.nextLong();
|
||||
}
|
||||
}
|
||||
|
||||
return output;
|
||||
|
@ -60,8 +63,11 @@ public class Trypt {
|
|||
output[i] = (byte) (encrypted ^ salt ^ key[(i++ ^ cRandD.nextInt(0x7fffffff)) % key.length]);
|
||||
}
|
||||
|
||||
for (byte b = 0; b < output[cRandD.nextInt(output.length)]; b++) {
|
||||
cRandD.nextLong();
|
||||
for (int i = 0; i < scramble; i++) {
|
||||
byte b = input[cRandD.nextInt(input.length)];
|
||||
for (int j = 0; j < b; j++) {
|
||||
cRandD.nextLong();
|
||||
}
|
||||
}
|
||||
|
||||
return output;
|
||||
|
|
Loading…
Add table
Reference in a new issue