Beispiel #1
0
        public FatFileSystemProvider OpenProdInfoF()
        {
            IStorage encStorage = ProdInfoF.Open().AsStorage();
            var      decStorage = new CachedStorage(new Aes128XtsStorage(encStorage, Keyset.BisKeys[0], 0x4000, true), 0x4000, 4, true);
            var      fat        = new FatFileSystem(decStorage.AsStream(FileAccess.Read), Ownership.None);

            return(new FatFileSystemProvider(fat));
        }
Beispiel #2
0
        public NandPartition OpenProdInfoF()
        {
            SparseStream encStream = ProdInfoF.Open();
            Xts          xts       = XtsAes128.Create(Keyset.BisKeys[0]);
            var          decStream = new RandomAccessSectorStream(new XtsSectorStream(encStream, xts, 0x4000, 0), true);
            var          fat       = new FatFileSystem(decStream, Ownership.None);

            return(new NandPartition(fat));
        }
Beispiel #3
0
        public NandPartition OpenProdInfoF()
        {
            IStorage encStorage = ProdInfoF.Open().AsStorage();
            var      decStorage = new CachedStorage(new Aes128XtsStorage(encStorage, Keyset.BisKeys[0], 0x4000, true), 0x4000, 4, true);

            decStorage.SetReadOnly();
            var fat = new FatFileSystem(decStorage.AsStream(), Ownership.None);

            return(new NandPartition(fat));
        }