mirror of
https://github.com/crskycode/GARbro.git
synced 2024-10-23 15:48:16 +08:00
added another XP3 encryption scheme.
This commit is contained in:
parent
32cae5a2f3
commit
12aa9eade5
@ -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]
|
[Serializable]
|
||||||
public class AlteredPinkCrypt : ICrypt
|
public class AlteredPinkCrypt : ICrypt
|
||||||
{
|
{
|
||||||
|
@ -170,6 +170,7 @@ Distance<br/>
|
|||||||
Fate/stay night<br/>
|
Fate/stay night<br/>
|
||||||
Fate/hollow ataraxia<br/>
|
Fate/hollow ataraxia<br/>
|
||||||
G-senjou no Maou<br/>
|
G-senjou no Maou<br/>
|
||||||
|
Gakuen Butou no Folklore<br/>
|
||||||
Hanafubuki ~Sennen no Koi o Shimashita~<br/>
|
Hanafubuki ~Sennen no Koi o Shimashita~<br/>
|
||||||
Haruiro ☆ Communication ♪<br/>
|
Haruiro ☆ Communication ♪<br/>
|
||||||
Hime to Majin to Koi Suru Tamashii<br/>
|
Hime to Majin to Koi Suru Tamashii<br/>
|
||||||
|
Loading…
Reference in New Issue
Block a user