Commit graph

11 commits

Author SHA1 Message Date
Alex Barney
bb14125542
Add build script (#20) 2018-11-21 22:57:18 -05:00
Alex Barney
3d50085e22
Use Storage throughout the library instead of Stream (#18)
*Create an IStorage interface and Storage abstract class to use instead of Stream

* Improve AES-XTS performance by ~16x

* Double AES-CTR performance: 800 MB/s -> 1600 MB/s on a 6700K

* Add AES-XTS tests

* Add AES benchmark and AES-CTR writing

* Add support for a hashed FAT in save files

* Add option to export decrypted NCA

* Allow opening decrypted package1 and package2

* Make sure romfs disposal can cascade all the way down

* Validate NCA, NPDM and package2 signatures
2018-11-18 23:20:34 -05:00
Alex Barney
ae649182ce Rename "Savefile" namespace to "Save" 2018-10-13 15:12:10 -05:00
Alex Barney
e9602d35da Modify check for ExeFS NCA sections 2018-10-12 21:28:05 -05:00
Alex Barney
6213111af9 Add option to verify SwitchFS and SD cards 2018-10-12 17:52:15 -05:00
Alex Barney
24e6434765 Use an enum instead of a bool for integrity checking levels 2018-10-09 15:33:56 -05:00
Alex Barney
a64cbeca5b Continue NCA improvements
- Read only the NCA header when first opening an NCA. This allows for reading of partial NCAs and slightly improves performance when opening an NCA.
- Add a separate NCA method to validate master hashes now that it's not automatically done when opening the NCA.
- Fix possible hang when reading BKTR sections.
- When keys required to decrypt an NCA are missing, throw an exception with information about the missing keys.
- Add more sanity checks when reading an NCA.

Hactoolnet: Don't hard-crash when hitting an unhandled exception
2018-10-08 21:04:39 -05:00
Alex Barney
209d81187a NCA reading improvements
Add on-the-fly Partition FS hash verification
Do some cleanup on NCA classes
2018-10-07 20:29:27 -05:00
Alex Barney
e740d13bbe Enforce "var" style 2018-10-02 17:25:58 -05:00
Alex Barney
ed6c3c2bed Add the option to enable IVFC integrity checks 2018-09-20 16:16:40 -05:00
Alex Barney
8230b0ba75 Split hactoolnet processing into multiple files 2018-09-12 20:28:50 -05:00