added another XP3 encryption scheme.

This commit is contained in:
morkt 2015-12-19 06:39:13 +04:00
parent 32cae5a2f3
commit 12aa9eade5
2 changed files with 29 additions and 0 deletions

View File

@ -1173,6 +1173,34 @@ NextEntry:
}
}
[Serializable]
public class GakuenButouCrypt : ICrypt
{
public override byte Decrypt (Xp3Entry entry, long offset, byte value)
{
if (0 != (offset & 1))
return (byte)(value ^ offset);
else
return (byte)(value ^ entry.Hash);
}
public override void Decrypt (Xp3Entry entry, long offset, byte[] values, int pos, int count)
{
for (int i = 0; i < count; ++i, ++offset)
{
if (0 != (offset & 1))
values[pos+i] ^= (byte)offset;
else
values[pos+i] ^= (byte)entry.Hash;
}
}
public override void Encrypt (Xp3Entry entry, long offset, byte[] values, int pos, int count)
{
Decrypt (entry, offset, values, pos, count);
}
}
[Serializable]
public class AlteredPinkCrypt : ICrypt
{

View File

@ -170,6 +170,7 @@ Distance<br/>
Fate/stay night<br/>
Fate/hollow ataraxia<br/>
G-senjou no Maou<br/>
Gakuen Butou no Folklore<br/>
Hanafubuki ~Sennen no Koi o Shimashita~<br/>
Haruiro ☆ Communication ♪<br/>
Hime to Majin to Koi Suru Tamashii<br/>