mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04:13 +08:00
another XP3 encryption scheme.
This commit is contained in:
parent
fa5015c1e8
commit
632d4b4602
@ -1264,4 +1264,27 @@ NextEntry:
|
|||||||
Decrypt (entry, offset, values, pos, count);
|
Decrypt (entry, offset, values, pos, count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Serializable]
|
||||||
|
public class IncubusCrypt : ICrypt
|
||||||
|
{
|
||||||
|
public override byte Decrypt (Xp3Entry entry, long offset, byte value)
|
||||||
|
{
|
||||||
|
return (byte)~(value ^ (entry.Hash + 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Decrypt (Xp3Entry entry, long offset, byte[] values, int pos, int count)
|
||||||
|
{
|
||||||
|
byte key = (byte)~(entry.Hash + 1);
|
||||||
|
for (int i = 0; i < count; ++i)
|
||||||
|
{
|
||||||
|
values[pos+i] ^= key;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Encrypt (Xp3Entry entry, long offset, byte[] values, int pos, int count)
|
||||||
|
{
|
||||||
|
Decrypt (entry, offset, values, pos, count);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -185,6 +185,7 @@ Nidaime wa ☆ Mahou Shoujo<br/>
|
|||||||
Nuki Doki!<br/>
|
Nuki Doki!<br/>
|
||||||
Okiba ga Nai!<br/>
|
Okiba ga Nai!<br/>
|
||||||
Ore no Saimin Fantasia<br/>
|
Ore no Saimin Fantasia<br/>
|
||||||
|
Riding Incubus<br/>
|
||||||
Seirei Tenshou<br/>
|
Seirei Tenshou<br/>
|
||||||
Se-kirara<br/>
|
Se-kirara<br/>
|
||||||
Sharin no Kuni, Himawari no Shoujo<br/>
|
Sharin no Kuni, Himawari no Shoujo<br/>
|
||||||
@ -302,7 +303,9 @@ Sakura Synchronicity<br/>
|
|||||||
Shinsetsu Ryouki no Ori Dai 2 Shou<br/>
|
Shinsetsu Ryouki no Ori Dai 2 Shou<br/>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr class="odd"><td>*.elg</td><td><tt>ELG</tt></td><td>No</td></tr>
|
<tr class="odd"><td>*.elg</td><td><tt>ELG</tt></td><td>No</td></tr>
|
||||||
<tr><td>*.arc</td><td><tt>ARC\x1a</tt></td><td>No</td><td rowspan="2">AZ System</td><td rowspan="2">Triptych</td></tr>
|
<tr><td>*.arc</td><td><tt>ARC\x1a</tt></td><td>No</td><td rowspan="2">AZ System</td><td rowspan="2">
|
||||||
|
Triptych<br/>
|
||||||
|
</td></tr>
|
||||||
<tr><td>*.cpb</td><td><tt>CPB\x1a</tt></td><td>No</td></tr>
|
<tr><td>*.cpb</td><td><tt>CPB\x1a</tt></td><td>No</td></tr>
|
||||||
<tr class="odd"><td>*.mfg<br/>*.mfm<br/>*.mfs</td><td><tt>ALPF</tt></td><td>No</td><td rowspan="2">Silky's</td><td rowspan="2">Jokei Kazoku</td></tr>
|
<tr class="odd"><td>*.mfg<br/>*.mfm<br/>*.mfs</td><td><tt>ALPF</tt></td><td>No</td><td rowspan="2">Silky's</td><td rowspan="2">Jokei Kazoku</td></tr>
|
||||||
<tr class="odd"><td>*</td><td><tt>MFG_</tt><br/><tt>MFGA</tt><br/><tt>MFGC</tt></td><td>No</td></tr>
|
<tr class="odd"><td>*</td><td><tt>MFG_</tt><br/><tt>MFGA</tt><br/><tt>MFGC</tt></td><td>No</td></tr>
|
||||||
@ -411,6 +414,7 @@ Kimi no Omoi, Sono Negai<br/>
|
|||||||
Samurai Jupiter<br/>
|
Samurai Jupiter<br/>
|
||||||
Sora no Iro, Mizu no Iro<br/>
|
Sora no Iro, Mizu no Iro<br/>
|
||||||
Thunder Claps!<br/>
|
Thunder Claps!<br/>
|
||||||
|
Tokumei Kyoushi Hitomi<br/>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr><td>*.iks</td><td><tt>NPSR</tt></td><td>No</td><td>X[iks]</td><td>Shikkan ~Hazukashimerareta Karada, Oreta Kokoro~</td></tr>
|
<tr><td>*.iks</td><td><tt>NPSR</tt></td><td>No</td><td>X[iks]</td><td>Shikkan ~Hazukashimerareta Karada, Oreta Kokoro~</td></tr>
|
||||||
<tr class="odd"><td>*.wbp</td><td><tt>ARCFORM3 WBUG</tt></td><td>No</td><td rowspan="4">Wild Bug</td><td rowspan="4">
|
<tr class="odd"><td>*.wbp</td><td><tt>ARCFORM3 WBUG</tt></td><td>No</td><td rowspan="4">Wild Bug</td><td rowspan="4">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user