added some XP3 encryption schemes.

This commit is contained in:
morkt
2016-03-07 18:23:10 +04:00
parent f377b0088c
commit 9beff31fee
6 changed files with 263 additions and 3 deletions

View File

@@ -259,7 +259,10 @@ NextEntry:
header.BaseStream.Position = dir_offset;
}
}
return new ArcFile (file, this, dir);
var arc = new ArcFile (file, this, dir);
if (crypt_algorithm.IsValueCreated)
crypt_algorithm.Value.Init (arc);
return arc;
}
static readonly Regex ObfuscatedPathRe = new Regex (@"[^\\/]+[\\/]\.\.[\\/]");