Пример #1
0
 private Stream OpenEncryptedEntry(FrontwingArchive arc, Entry entry)
 {
     byte[] data = arc.File.View.ReadBytes(entry.Offset, entry.Size);
     arc.Encryption.Decipher(data, data.Length / 8 * 8);
     return(new BinMemoryStream(data, entry.Name));
 }
Пример #2
0
 private Stream OpenEncryptedEntry(FrontwingArchive arc, Entry entry)
 {
     byte[] data = arc.File.View.ReadBytes (entry.Offset, entry.Size);
     arc.Encryption.Decipher (data, data.Length/8*8);
     return new MemoryStream (data);
 }