Repository navigation
cmf/trg: support build 154504 - #40
Closed
sandsand244263 wants to merge 1 commit into
Closed
sandsand244263 wants to merge 1 commit into
sandsand244263 wants to merge 1 commit into
Conversation
Contributor
|
Hi |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds manifest crypto support for build
2.25.0.1.154504N.ProCMF_154504— CMF procedure for 154504. Same keytable as before is not reused: this build derives key/iv differently (kidx = T[0x100 + len]with+= 3stepping for the key, and adataCount/digest-driven step for the iv), so the table for this build is embedded as a const array like the existingProCMF_*files.ProTRG_154504— TRG procedure for 154504, registered viaAutoDetectVersion. Shares the same keytable and key derivation as the CMF procedure; only the iv derivation differs (uses the header's package count instead of the manifest data count).Verified against the real client manifests (build 154504):
Win_SPWin_RCN_EExt.cmf: 361 entries, 1,306,039 hashes — entry indices unique/increasing starting at 1, hashes ascending for all 1,306,039, all sizes sane, plaintext length exactly361*20 + 1,306,039*29 + 1...._LzhCN_text_EExt.cmf,..._LzhCN_speech_EExt.cmf) decrypt with the same table; 124,183 and 66,220 hashes respectively, all GUIDs strictly increasing, padding bytes consistent.packageCount * 30 == packageBlockSize; walking all 15,584 skins viam_assetPtrlands exactly on the block end (no trailing free bytes); 95.8% of the 29,516 packages haveresourceKeyID == 0.list-workshopon this build produces byte-identical output to the previous build's export, i.e. this is a pure build bump with no data changes.Notes:
packageCountterm is behaviourally inferred (it is the only candidate that makesstepland correctly), not read off a disassembly operand. It only affects the first 16 bytes of plaintext, and the structural checks above pass with it.AttemptFallbackManifestsis left alone; these procedures register normally.WinPrism_*product branch is untouched (DataTool filters it out on this platform anyway).