mirror of
https://github.com/rvtr/TDT.git
synced 2025-10-31 13:51:07 -04:00
Compare commits
No commits in common. "5d55d306f14aefe2e12ded117bfea178c3280125" and "adfc7d6c452c12c0d76eec00d131f96732681441" have entirely different histories.
5d55d306f1
...
adfc7d6c45
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -15,7 +15,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: devkitpro/devkitarm:20241104
|
container: devkitpro/devkitarm
|
||||||
name: Build with Docker using devkitARM
|
name: Build with Docker using devkitARM
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
|
|||||||
@ -41,10 +41,6 @@ const unsigned char debuggerKey[] = {
|
|||||||
0xA2, 0xFD, 0xDD, 0xF2 ,0xE4, 0x23, 0x57, 0x4A,
|
0xA2, 0xFD, 0xDD, 0xF2 ,0xE4, 0x23, 0x57, 0x4A,
|
||||||
0xE7, 0xED, 0x86, 0x57, 0xB5, 0xAB, 0x19, 0xD3
|
0xE7, 0xED, 0x86, 0x57, 0xB5, 0xAB, 0x19, 0xD3
|
||||||
};
|
};
|
||||||
const unsigned char customKey[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00 ,0x00, 0x00, 0x00, 0x00,
|
|
||||||
0x00, 0x00, 0x00, 0x00 ,0x00, 0x00, 0x00, 0x00
|
|
||||||
};
|
|
||||||
// Content IV be fine as a hardcoded string. Content IV is based off of the content index. (index # with zerobyte padding)
|
// Content IV be fine as a hardcoded string. Content IV is based off of the content index. (index # with zerobyte padding)
|
||||||
// All TADs I've seen only ever had a single content. It might be a good idea to add something down the line in case a
|
// All TADs I've seen only ever had a single content. It might be a good idea to add something down the line in case a
|
||||||
// weird TAD pops up, but until then this should do.
|
// weird TAD pops up, but until then this should do.
|
||||||
@ -256,11 +252,6 @@ char* openTad(char const* src) {
|
|||||||
iprintf("Key fail!\n\nTrying debugger common key...\n");
|
iprintf("Key fail!\n\nTrying debugger common key...\n");
|
||||||
keyFail = decryptTad(debuggerKey, title_key_iv, title_key_enc, content_iv, swap_endian_u32(srlTrueSize), srlTidLow, dataTitle, contentHash);
|
keyFail = decryptTad(debuggerKey, title_key_iv, title_key_enc, content_iv, swap_endian_u32(srlTrueSize), srlTidLow, dataTitle, contentHash);
|
||||||
}
|
}
|
||||||
if (keyFail == TRUE) {
|
|
||||||
remove("sd:/_nds/TADDeliveryTool/tmp/temp.srl");
|
|
||||||
iprintf("Key fail!\n\nTrying custom key...\n");
|
|
||||||
keyFail = decryptTad(customKey, title_key_iv, title_key_enc, content_iv, swap_endian_u32(srlTrueSize), srlTidLow, dataTitle, contentHash);
|
|
||||||
}
|
|
||||||
if (keyFail == TRUE) {
|
if (keyFail == TRUE) {
|
||||||
remove("sd:/_nds/TADDeliveryTool/tmp/temp.srl");
|
remove("sd:/_nds/TADDeliveryTool/tmp/temp.srl");
|
||||||
iprintf("All keys failed!\n");
|
iprintf("All keys failed!\n");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user