-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Source: iebb@9f904b7 - It's unknown if it works for real SIF CNv3 assets file
- Loading branch information
1 parent
2dc508c
commit c70db96
Showing
11 changed files
with
125 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* CN_Decrypter.cc | ||
* SIF CN game files related things | ||
**/ | ||
|
||
#include "DecrypterContext.h" | ||
static const unsigned int cn_key_tables[64] = { | ||
0x1b695658u, 0x0a43a213u, 0x0ead0863u, 0x1400056du, | ||
0xd470461du, 0xb6152300u, 0xfbe054bcu, 0x9ac9f112u, | ||
0x23d3cab6u, 0xcd8fe028u, 0x6905bd74u, 0x01a3a612u, | ||
0x6e96a579u, 0x333d7ad1u, 0xb6688bffu, 0x29160495u, | ||
0xd7743bcfu, 0x8ede97bbu, 0xcacb7e8du, 0x24d81c23u, | ||
0xdbfc6947u, 0xb07521c8u, 0xf506e2aeu, 0x3f48df2fu, | ||
0x52beb172u, 0x695935e8u, 0x13e2a0a9u, 0xe2edf409u, | ||
0x96cba5c1u, 0xdbb1e890u, 0x4c2af968u, 0x17fd17c6u, | ||
0x1b9af5a8u, 0x97c0bc25u, 0x8413c879u, 0xd9b13fe1u, | ||
0x4066a948u, 0x9662023au, 0x74a4feeeu, 0x1f24b4f6u, | ||
0x637688c8u, 0x7a7ccf70u, 0x91042eecu, 0x57edd02cu, | ||
0x666da2ddu, 0x92839de9u, 0x43baa9edu, 0x024a8e2cu, | ||
0xd4ee7b72u, 0x34c18b72u, 0x13b275c4u, 0xed506a6eu, | ||
0xbc1c29b9u, 0xfa66a220u, 0xc2364de3u, 0x767e52b2u, | ||
0xe2d32439u, 0xe6f0cef5u, 0xd18c8687u, 0x14bba295u, | ||
0xcd84d15bu, 0xa0290f82u, 0xd3e95afcu, 0x9c6a97b4u | ||
}; | ||
|
||
HonokaMiku::CN3_Dctx::CN3_Dctx(const void* header, const char* filename): HonokaMiku::V3_Dctx(HonokaMiku::GetPrefixFromGameId(7), cn_key_tables, header, filename) {} | ||
|
||
|
||
void HonokaMiku::CN3_Dctx::final_setup(const char* filename, const void* block_rest) | ||
{ | ||
finalDecryptV3(this, 1847, filename, block_rest); | ||
} | ||
|
||
HonokaMiku::CN3_Dctx* HonokaMiku::CN3_Dctx::encrypt_setup(const char* filename,void* hdr_out) | ||
{ | ||
CN3_Dctx* dctx = new CN3_Dctx; | ||
setupEncryptV3(dctx, HonokaMiku::GetPrefixFromGameId(7), cn_key_tables, 1847, filename, hdr_out); | ||
return dctx; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters