Commit graph

708 commits

Author SHA1 Message Date
Alex Barney
ae649182ce Rename "Savefile" namespace to "Save" 2018-10-13 15:12:10 -05:00
Alex Barney
a27c9f78c7
Merge pull request #13 from Thealexbarney/nca
- 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.
- Add a cache to prevent validation an IntegrityVerificationStream block twice.
- Add section validation for all hashed NCA sections
- Fix a bug in ConbinationStream when reading across boundaries
- Add option to verify NCAs in a SwitchFS or SD card
- Don't error if the an patch NCA's base NCA has no RomFS
2018-10-12 20:32:07 -06:00
Alex Barney
e9602d35da Modify check for ExeFS NCA sections 2018-10-12 21:28:05 -05:00
Alex Barney
75dafd9cbe Remove old classes 2018-10-12 21:08:16 -05:00
Alex Barney
e1b9f9b935 Don't error if the a patch's base has no RomFS 2018-10-12 18:07:46 -05:00
Alex Barney
6213111af9 Add option to verify SwitchFS and SD cards 2018-10-12 17:52:15 -05:00
Alex Barney
e21c384a9c Fix bug in ConbinationStream when reading across boundaries 2018-10-12 16:51:09 -05:00
Alex Barney
fb089b0700 Integrity verification improvements
- Add a cache to prevent validation an IntegrityVerificationStream block twice.
- Add section validation for all hashed NCA sections
2018-10-09 18:10:44 -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
47a3eda0ed Fix key printing 2018-10-05 12:29:52 -05:00
Alex Barney
db00267ef4 Dispose SharedStreamSource. Temp fix for switchfs reading without title keys 2018-10-05 12:23:18 -05:00
Alex Barney
0300f55da5 Give RomfsDir and RomfsFile a common base 2018-10-04 21:40:59 -05:00
jonnysp
d12f419d8d Add Partition FS extraction (#12)
Add Partition FS extraction + misc. changes
2018-10-03 14:14:23 -06:00
Alex Barney
e798a8dd45 Add key file exporting to hactoolnet 2018-10-02 22:00:57 -05:00
Alex Barney
e740d13bbe Enforce "var" style 2018-10-02 17:25:58 -05:00
Alex Barney
372370db82 Code style naming fixes 2018-10-01 13:07:20 -05:00
Alex Barney
56115ace39 Fix casing of names 2018-10-01 13:00:09 -05:00
Alex Barney
a21283bf44 Print information about save files 2018-10-01 12:55:10 -05:00
Alex Barney
7a5bd2347d Read additional portion of patch content metadata files 2018-09-25 18:28:49 -05:00
Alex Barney
64c98df5b3 Fix hactoolnet build 2018-09-24 14:42:06 -05:00
Alex Barney
54319145c1
Merge pull request #10 from jonnysp/master
added XCI File and Partition HashValidity
2018-09-24 13:40:03 -06:00
Alex Barney
b5c7f14d55
Merge pull request #11 from shadowninja108/master
Add partial NSO support
2018-09-23 20:22:39 -06:00
Alex Barney
fba8a7c6e0 Code style tweaks 2018-09-23 21:18:20 -05:00
shadowninja108
86aa80c87b Fixed Nso implementation
Added more keyset printing
2018-09-23 00:24:14 -07:00
shadowninja108
0efc550fa6 Better handling of the IsCompressed flag in Nso.cs 2018-09-22 21:52:30 -07:00
shadowninja108
e694833e0c Switched to Ryujinx's implementation of LZ4
Fixed stream handling in Nso.cs
2018-09-22 21:46:15 -07:00
shadowninja108
73b472befa Add partial NSO support 2018-09-22 20:19:27 -07:00
Alex Barney
34c3ffd37e Make sure the title key for an NCA exists when loading 2018-09-22 18:48:44 -05:00
jonnysp
f7b23c3f83 correction ECB CBC 2018-09-22 08:42:00 +02:00
jonnysp
ab8dda98b4 simplify the ECB and CBC 2018-09-22 07:44:52 +02:00
jonnysp
235ace8b1b added XCI File and Partition HashValidity 2018-09-21 14:37:30 +02:00
Alex Barney
ab565fe83e Version 0.1.2 2018-09-20 21:26:25 -05:00
Alex Barney
49d5c8e43b Remove setters from Keyset keys 2018-09-20 21:19:34 -05:00
Alex Barney
8110000737 Parse title key files with pipes as delimiters 2018-09-20 21:15:27 -05:00
Alex Barney
53680f3e5c Add Stream overload to Ticket constructor 2018-09-20 20:36:58 -05:00
Alex Barney
e92c686d77 Add save file integrity verification 2018-09-20 20:34:40 -05:00
Alex Barney
ed6c3c2bed Add the option to enable IVFC integrity checks 2018-09-20 16:16:40 -05:00
Alex Barney
f04fc33b07 Read INI1 2018-09-17 19:52:22 -05:00
Alex Barney
8b8aa3277f Read KIP1 files 2018-09-17 19:20:56 -05:00
Alex Barney
4bfaafc301 Add package2 support 2018-09-16 20:26:16 -05:00
Alex Barney
087008f7f4 Add save file signing capability 2018-09-15 22:31:06 -05:00
Alex Barney
e651eb731c Validate save signature 2018-09-15 22:10:42 -05:00
Alex Barney
77dc8fb9a1 Fix bug in updating the AES-CTR counter 2018-09-15 15:56:15 -05:00
Alex Barney
1f62706d4c Add XCI signature checks and info output 2018-09-13 17:58:40 -05:00
Alex Barney
c321f65f2a Check XCI signature validity 2018-09-13 14:07:28 -05:00
Alex Barney
8230b0ba75 Split hactoolnet processing into multiple files 2018-09-12 20:28:50 -05:00
Alex Barney
7cef145513 Make key names match naming convention 2018-09-12 20:27:46 -05:00
Alex Barney
8022d193df Add package1 support. Update usage 2018-09-12 19:51:21 -05:00