Commit Graph

156 Commits (master)

Author SHA1 Message Date
shchmue 918b00ce07 Implement payload compression 2021-05-12 16:47:06 -06:00
shchmue a7712b173c Update to hekate bdk 5.5.6 2021-05-12 15:38:34 -06:00
shchmue 93909f149e pkg1: Recognize 12.0.2 2021-05-12 10:33:56 -06:00
shchmue dd3add9327 pkg1: Recognize 12.0.0 2021-04-06 16:44:08 -06:00
shchmue 20c0df3715 Validate pkg1_identify result for main menu 2021-04-06 16:43:44 -06:00
shchmue b3f6e055b2 Reconfigure messages to conserve payload size 2021-01-05 15:38:53 -07:00
shchmue b77d42e8e3 keys: Dump partial AES keys even if 0 titlekeys 2021-01-05 15:24:54 -07:00
shchmue 89ef341621 keys: Dump partials for Mariko keyslot bruteforce 2020-12-10 18:05:36 -07:00
shchmue b7495bd575 keys: Finish refactor 2020-12-10 12:39:09 -07:00
shchmue b074d14107 keys: Finalize Mariko compatibility with save mac 2020-12-09 19:08:24 -07:00
shchmue a0eaa5e4ed Support Mariko, patched Erista 2020-12-07 19:11:33 -07:00
shchmue 1f77c50975 keys: More refactoring 2020-12-04 18:28:05 -07:00
shchmue 423a5640be keys: Break up dump_keys, begin Mariko support 2020-12-04 13:07:46 -07:00
shchmue 5d101cad50 Update to Hekate bdk 5.5.0, prelim Mariko support 2020-12-04 11:20:01 -07:00
shchmue 04378b322d Huge savedata driver refactor 2020-12-03 18:43:16 -07:00
shchmue bd134cf670 Support firmware 11.0.0, continue refactor 2020-12-03 18:16:55 -07:00
shchmue c4172d77e1 keys: Improve readability, read keyblobs at once 2020-07-13 16:22:36 -06:00
shchmue 49dfca45a5 keys: Remove key source search, begin rewrite 2020-07-13 11:31:51 -06:00
shchmue 73fce1da86 nx_emmc_bis: Count clusters to flush 2020-07-05 14:06:08 -06:00
shchmue 25aa483bd5 nx_emmc_bis: Implement bis write 2020-07-02 14:10:44 -06:00
shchmue acc11300e5 main: Read key generation from bct instead of pkg1 2020-07-02 13:05:22 -06:00
shchmue 5ed601dd4b Improve emummc semantics and error checking 2020-07-02 09:42:49 -06:00
shchmue bd09f5418d Use cal0 struct, improve style consistency 2020-06-26 14:49:42 -06:00
shchmue 4ffd4ce7f0 Transition to hekate bdk layout 2020-06-26 14:17:06 -06:00
shchmue 4425e81085 Sector -> cluster cache, optimize _gf256_mul_x_le 2020-06-25 15:11:40 -06:00
shchmue 47f749c6fe Support sept from Atmosphere 0.13.0 2020-06-17 10:37:48 -06:00
shchmue 7649eb1362 Improve code readability 2020-06-17 10:31:29 -06:00
shchmue d8586b4763 fatfs: Merge some hekate changes 2020-06-17 10:30:58 -06:00
shchmue afd17a13ba Add memcmp result checks to avoid gcc optimization 2020-05-18 16:51:37 -06:00
shchmue 4a69ea1922 Add FSS0 support 2020-05-18 15:52:19 -06:00
shchmue 64d7e5cebd Apply hekate 5.2.1 and gcc 10 changes, -fno-inline 2020-05-18 14:11:27 -06:00
shchmue a5fe954ce7 Add se functions, match Hekate brace style 2020-05-17 17:45:48 -06:00
shchmue 0427c99176 keys: Improve messaging for long run times 2020-05-10 21:09:11 -06:00
shchmue c63532bfdc keys: Fastfs wasn't appropriate for this after all 2020-05-10 19:11:07 -06:00
shchmue 2f6ee85d37 main: Removed redundant defines 2020-05-10 19:10:47 -06:00
shchmue da6734afff save: Tidied up error prints 2020-05-10 19:10:27 -06:00
shchmue 3705b5f228 Hardcode buffers, lock sector cache, use fastfs 2020-05-10 13:28:54 -06:00
shchmue 9130c4b69c diskio: Improve emmc xts, double sector cache 2020-05-08 15:24:04 -06:00
shchmue b147f34c53 se: Improve general xts function 2020-05-08 15:22:47 -06:00
shchmue b536a98b8d keys: Fix freeze when es saves not present 2020-04-15 17:05:20 -06:00
shchmue 7c6a3b1d3e Update readme and copyrights 2020-04-15 17:04:07 -06:00
shchmue 8a742a45d4 save: Fix remap init, add graceful fail paths 2020-04-15 16:22:23 -06:00
shchmue 25ff127404 Merge hekate 5.1.4 changes 2020-04-15 16:18:58 -06:00
shchmue a7d20c5814 pkg2: Improve Ini1 kernel offset code per hekate 2020-04-14 15:10:51 -06:00
shchmue ef6676d3b9 pkg1: Key offsets for 10.0.0 2020-04-14 15:07:58 -06:00
shchmue e72e486283 v1.8.1: Fixes for new console key derivation 2019-12-30 09:18:02 -07:00
shchmue a55e62d45a Merge Hekate fixes to gfx, minerva 2019-12-29 14:32:37 -07:00
shchmue fa41ad507f keys: Fix incorrect new console bis key derivation 2019-12-16 13:37:44 -07:00
shchmue d6794070c4 minerva: Fallback gracefully when old lib present 2019-12-09 12:51:11 -07:00
shchmue 12a076ca82 heap: Integrate hekate rework 2019-12-09 12:50:38 -07:00
shchmue f2e5413ef3 keys: Check emummc SD seed vector when appropriate 2019-12-09 12:50:08 -07:00
shchmue b3a739592e Merge hekate 5.1.0 changes 2019-12-08 19:17:46 -07:00
shchmue cdb29719e4 keys: Improve unrecognized pkg1 messaging 2019-12-08 12:28:52 -07:00
shchmue a9595e5837 Add 9.1.0 support 2019-12-08 12:16:29 -07:00
shchmue 0459e813cf keys: Protect against free-before-use of kip 2019-12-07 17:01:16 -07:00
shchmue 7a486e547e se: Use descriptive defines 2019-12-07 15:41:42 -07:00
shchmue aac874f7a3 v1.7.1: Heap bugfix, add payload chainloading 2019-10-31 21:08:58 -06:00
shchmue fc87643922 heap: Revert problematic size calculation
Minor heap fragmentation was not worth preventing
2019-10-31 16:46:36 -06:00
shchmue 6ad7192199 Move key offsets to struct for cleaner code 2019-10-28 09:54:01 -06:00
shchmue 1c82665901 Parse ES saves right, vastly improve titlekey time 2019-10-26 20:29:36 -06:00
shchmue 1feb83f1dc heap: Fix calloc memset, end node max size on free 2019-10-25 22:01:23 -06:00
shchmue 5d44ef0af6 se: Hardcode internal se vars, add HMAC-SHA256 2019-10-25 21:48:29 -06:00
shchmue 5f100fef8a nx_emmc: Fix nested loop with same variable 2019-10-25 12:04:03 -06:00
shchmue a5bb071927 keys: Fix potential memory leak in _nca_process 2019-10-25 11:59:34 -06:00
shchmue dbc86a6699 keys: Ensure SD mount before writing key buffer 2019-10-25 11:57:59 -06:00
shchmue 86f2a63fb7 keys: Fix failure to free decompressed kip1 2019-10-25 11:56:06 -06:00
shchmue 535a2d97f2 keys: Validate storage init 2019-10-25 11:54:57 -06:00
shchmue d946ade94b kfuse: Fix missing include 2019-10-25 11:46:10 -06:00
shchmue 472aa1665e sept: Prevent memory leak 2019-10-25 11:44:51 -06:00
shchmue 2d4ffd2965 diskio: Alloc xts enc, don't realloc sector cache 2019-10-25 11:43:11 -06:00
shchmue b468026540 heap: Prevent node chain collapse on free 2019-10-25 11:41:30 -06:00
shchmue e5849e3ab2 Remove invalid free for this use case 2019-10-25 10:05:57 -06:00
shchmue 76a13c85fa Remove "Os" pragmas, merge hekate changes 2019-10-22 11:22:26 -06:00
shchmue eee656bb34 Add missing file for KFuse fix 2019-10-22 11:18:05 -06:00
shchmue b5e932755a Remove wait for button press before reboot to Sept 2019-10-22 11:16:32 -06:00
shchmue 3ea82573e0 Add wait for KFuse init to prevent wrong TSEC key 2019-10-22 11:15:59 -06:00
shchmue 8c2aa76fd0 v1.6.4: Skip f_mkdir validation altogether 2019-10-21 11:06:39 -06:00
shchmue 340a256518 Fix the f_mkdir fix 2019-10-15 11:14:14 -06:00
shchmue ee1a3e08ae Fix bad f_mkdir check skipping file save 2019-10-15 11:11:47 -06:00
shchmue d890616c33 Fix function name typo 2019-10-15 10:25:20 -06:00
shchmue 5d1386cc10 Validate more file I/O calls 2019-10-07 13:18:14 -06:00
shchmue 0024f049b6 Add new FS keys for LibHac, ff.c -> thumb 2019-10-06 18:41:20 -06:00
shchmue 21e8ca6204 Fixed key save buffer non-zero init error 2019-09-29 23:07:05 -06:00
shchmue d6105b95e1 Add key generation to menu and fix repeat dump bug 2019-09-27 16:30:44 -06:00
shchmue 035134f36e Add titlekey dumping and Minerva 2019-09-25 12:18:08 -06:00
shchmue 1f2f0c433e Fix trailing whitespace 2019-09-17 10:03:41 -06:00
shchmue 250f068211 Add menu and option to dump keys from emuMMC 2019-09-17 09:51:30 -06:00
shchmue 19796e486c Add hekate cfg and color incrementing 2019-09-16 22:18:41 -06:00
shchmue 6540ddc24b Fix bis key generation for newer hardware 2019-09-15 19:30:42 -06:00
shchmue 2c79f8c660 Bump version to v1.4.0 2019-09-14 22:20:47 -06:00
shchmue 82bea6be8f Add BPMP overclock, add hekate fixes, fix sprintf 2019-09-14 22:16:10 -06:00
shchmue 34890f0025 Add support for 9.0.0, new Sept, and master_key_09 2019-09-14 21:37:43 -06:00
shchmue 54d14196e0 Add support for 8.1.0, new Sept, and master_key_08 2019-06-19 18:16:02 -04:00
shchmue 7a50772703 Fit SD seed messaging on single lines 2019-05-31 12:57:46 -04:00
shchmue abc2c85864 Respect IRAM stack in diskio.c 2019-05-31 12:57:11 -04:00
shchmue dae4c72910 Support pkg1+pkg2 mismatch and "dev.keys" filename 2019-05-18 11:08:34 -04:00
shchmue 220fb4ba3c Clean up diskio.c, enforce buffer alignment 2019-05-17 09:17:14 -04:00
shchmue 83b75af726 Improve sprintf semantics and usage 2019-05-12 14:05:58 -04:00
shchmue f73bb0b7b7 Tidy keys.c, align FATFS struct and its members 2019-05-12 13:15:23 -04:00
shchmue f612ee2a8c Find tsecfw size and offset firmware-agnostically 2019-05-11 21:03:24 -04:00