diff --git a/ArcFormats/KiriKiri/CryptAlgorithms.cs b/ArcFormats/KiriKiri/CryptAlgorithms.cs index 4d94ad6a..809f6c8a 100644 --- a/ArcFormats/KiriKiri/CryptAlgorithms.cs +++ b/ArcFormats/KiriKiri/CryptAlgorithms.cs @@ -765,4 +765,38 @@ namespace GameRes.Formats.KiriKiri Decrypt (entry, offset, values, pos, count); } } + + [Serializable] + public class StripeCrypt : ICrypt + { + readonly byte m_key; + + public StripeCrypt (byte key) + { + m_key = key; + } + + public override byte Decrypt (Xp3Entry entry, long offset, byte value) + { + return (byte)((value ^ m_key) + 1); + } + + public override void Decrypt (Xp3Entry entry, long offset, byte[] values, int pos, int count) + { + for (int i = 0; i < count; ++i) + { + values[pos+i] ^= m_key; + values[pos+i] ++; + } + } + + public override void Encrypt (Xp3Entry entry, long offset, byte[] values, int pos, int count) + { + for (int i = 0; i < count; ++i) + { + values[pos+i] --; + values[pos+i] ^= m_key; + } + } + } } diff --git a/supported.html b/supported.html index d2ec0cd1..16f22277 100644 --- a/supported.html +++ b/supported.html @@ -234,6 +234,7 @@ Altered Pink ~Tokumu Sentai Duel Ranger~
Aozora Gakko no Sensei-kun
Cafe Sourire
Coμ
+Corona Blossom vol.1
Crime Rhyme series
Damegane
Distance
@@ -272,6 +273,7 @@ Se-kirara
Sharin no Kuni, Himawari no Shoujo
Shokusai no Miyako
Smile Cubic!
+Specialite!
Suiheisen made Nan Mile?
Swan Song
Teakamamire no Tenshi
@@ -402,6 +404,7 @@ Najimi no Oba-chan ShiinaRio v2.47
Niizuma to Yuukaihan ShiinaRio v2.45
Otome Chibaku Yuugi ShiinaRio v2.40
Otome Juurin Yuugi ShiinaRio v2.37
+Pure Love! ShiinaRio v2.47
Ran→Sem ShiinaRio v2.47
Rin×Sen ShiinaRio v2.47
Sabae no Ou ShiinaRio v2.36