Commit graph

20 commits

Author SHA1 Message Date
Alex Barney
26bf0876cb Rewrite AES CTR classes to give a 6-8x overall speedup 2018-08-24 17:01:27 -05:00
Alex Barney
a68426751f Introduce multi-instance, thread-safe streams
Previously multiple streams could share the same base stream. This meant that you couldn't alternate between streams. If you read from one stream, the state of other streams sharing the same base stream would be messed up and would silently return bad data.

This commit introduces a SharedStream class that allows multiple SharedStreams to share the same base class and not interfere with each other.
2018-08-22 15:54:34 -05:00
Alex Barney
de53449dac Add ExeFS detection 2018-08-15 16:33:45 -06:00
Alex Barney
1e813818c0 Add support for extracting XCI partitions 2018-08-14 17:21:07 -06:00
Alex Barney
f1b660b95f Add IFileSystem interface
I don't know about this. It seems really easy to screw something up.

Allows using the same code for reading the raw nand and reading a normal file system
2018-07-11 20:03:09 -05:00
Alex Barney
14da035273 Do initial bktr section validation 2018-07-10 17:16:25 -05:00
Alex Barney
18bb3d8531 First attempt at implementing BKTR 2018-07-07 15:45:06 -05:00
Alex Barney
c4efec762f Mimic hactool output. Verify hashes 2018-07-05 16:37:30 -05:00
Alex Barney
20be7206a0 Add basic CLI functionality 2018-07-02 21:23:07 -05:00
Alex Barney
3e6d2a7761 Add romfs superblock validation 2018-06-28 16:55:36 -05:00
Alex Barney
95ee755774 Apply section CTR and do a pfs0 superblock validity check 2018-06-28 15:03:04 -05:00
Alex Barney
d336c2e58d Load title keys 2018-06-27 20:25:25 -05:00
Alex Barney
f583d01248 Make sure meta nca is included in title 2018-06-26 19:42:01 -05:00
Alex Barney
e4d9b46e60 Use SdFs class to read titles 2018-06-26 19:10:21 -05:00
Alex Barney
639e16cf98 Add option to dispose base streams 2018-06-25 17:44:44 -05:00
Alex Barney
fbe62d7d7f Parse PFS0 2018-06-22 19:43:38 -05:00
Alex Barney
b632a7df0c Decrypt AES-CTR sections 2018-06-22 14:05:29 -05:00
Alex Barney
e3d8e60b0e Read NCA header 2018-06-21 16:03:58 -05:00
Alex Barney
8054d38f5a SD card content listing example 2018-06-21 11:16:51 -05:00
Alex Barney
a6e72b0ee7 Read part of NCA header 2018-06-21 09:25:20 -05:00