feat(cargo-nx): read a KIP1 and check a package against its content meta - #79
Merged
Merged
Conversation
Extends `hactool` to the two things a title carries that it could not yet open. Checking a package against its content meta is the one failure a per-archive pass cannot find: an NCA whose own hashes verify can still be the wrong file, the wrong size, or absent, and only the meta says which files belong. - Read a KIP1, reporting its segments and extracting them expanded, so a `--outdir` gives back what `elf2kip` was handed rather than the BLZ streams - Print the content records when the archive read is the one carrying them, which is the only archive of a title that holds a CNMT - Check every archive of a package against the meta's recorded hash and size under `--verify`, which needs the keyset the metadata archive was sealed with - Document `hactool` in the README, including the two limits worth knowing: only the second header signature is checkable, and a package's own metadata archive is covered by no hash, since a content meta cannot list itself Signed-off-by: Lorenzo Delgado <lnsdev@proton.me>
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.
Extends
hactoolto the two things a title carries that it could not yet open. Checking a package against its content meta is the one failure a per-archive pass cannot find: an NCA whose own hashes verify can still be the wrong file, the wrong size, or absent, and only the meta says which files belong.--outdirgives back whatelf2kipwas handed rather than the BLZ streams--verify, which needs the keyset the metadata archive was sealed withhactoolin the README, including the two limits worth knowing: only the second header signature is checkable, and a package's own metadata archive is covered by no hash, since a content meta cannot list itself