linkle
linkle copied to clipboard
NCA extraction
Parse and extract nca sections.
Better format
https://github.com/MegatonHammer/linkle/blob/935fed26b7da56583d53b44fa4f1c2acfd125217/src/format/nca.rs#L141-L151
This comment was generated by todo based on a TODO comment in 935fed26b7da56583d53b44fa4f1c2acfd125217 in #34. cc @roblabla.
Check if NCA is already decrypted
https://github.com/MegatonHammer/linkle/blob/935fed26b7da56583d53b44fa4f1c2acfd125217/src/format/nca.rs#L170-L180
This comment was generated by todo based on a TODO comment in 935fed26b7da56583d53b44fa4f1c2acfd125217 in #34. cc @roblabla.
NCA: Verify header with RSA2048 PSS
We want to make sure the NCAs have a valid signature before decrypting. Maybe put it behind a flag that accepts invalidly signed NCAs?
https://github.com/MegatonHammer/linkle/blob/935fed26b7da56583d53b44fa4f1c2acfd125217/src/format/nca.rs#L206-L216
This comment was generated by todo based on a TODO comment in 935fed26b7da56583d53b44fa4f1c2acfd125217 in #34. cc @roblabla.
NCA0 => return
https://github.com/MegatonHammer/linkle/blob/935fed26b7da56583d53b44fa4f1c2acfd125217/src/format/nca.rs#L222-L232
This comment was generated by todo based on a TODO comment in 935fed26b7da56583d53b44fa4f1c2acfd125217 in #34. cc @roblabla.
Implement RightsID crypto.
https://github.com/MegatonHammer/linkle/blob/935fed26b7da56583d53b44fa4f1c2acfd125217/src/format/nca.rs#L228-L238
This comment was generated by todo based on a TODO comment in 935fed26b7da56583d53b44fa4f1c2acfd125217 in #34. cc @roblabla.
Store the SDK version in a more human readable format.
https://github.com/MegatonHammer/linkle/blob/935fed26b7da56583d53b44fa4f1c2acfd125217/src/format/nca.rs#L277-L287
This comment was generated by todo based on a TODO comment in 935fed26b7da56583d53b44fa4f1c2acfd125217 in #34. cc @roblabla.
Implement rights id.
https://github.com/MegatonHammer/linkle/blob/935fed26b7da56583d53b44fa4f1c2acfd125217/src/format/nca.rs#L281-L291
This comment was generated by todo based on a TODO comment in 935fed26b7da56583d53b44fa4f1c2acfd125217 in #34. cc @roblabla.
Nca::raw_section should reopen the file, not dup2 the handle.
https://github.com/MegatonHammer/linkle/blob/935fed26b7da56583d53b44fa4f1c2acfd125217/src/format/nca.rs#L294-L304
This comment was generated by todo based on a TODO comment in 935fed26b7da56583d53b44fa4f1c2acfd125217 in #34. cc @roblabla.
Make VerificationStream actually verify the data it reads.
based on the hash table located with the help of the superblock. It will need a different implementation for PFS0 and RomFs (and maybe Bktr?).
https://github.com/MegatonHammer/linkle/blob/935fed26b7da56583d53b44fa4f1c2acfd125217/src/format/nca.rs#L457-L467
This comment was generated by todo based on a TODO comment in 935fed26b7da56583d53b44fa4f1c2acfd125217 in #34. cc @roblabla.
Figure out why this is necessary.
https://github.com/MegatonHammer/linkle/blob/935fed26b7da56583d53b44fa4f1c2acfd125217/src/lib.rs#L1-L4
This comment was generated by todo based on a TODO comment in 935fed26b7da56583d53b44fa4f1c2acfd125217 in #34. cc @roblabla.
Document
https://github.com/MegatonHammer/linkle/blob/935fed26b7da56583d53b44fa4f1c2acfd125217/src/utils.rs#L5-L15
This comment was generated by todo based on a TODO comment in 935fed26b7da56583d53b44fa4f1c2acfd125217 in #34. cc @roblabla.
NCA0 => return
https://github.com/MegatonHammer/linkle/blob/9ba46f8aca8299c7c7e1e44fa5918b1d6792ae33/src/format/nca.rs#L222-L232
This comment was generated by todo based on a TODO comment in 9ba46f8aca8299c7c7e1e44fa5918b1d6792ae33 in #34. cc @roblabla.
NCA0 => return
https://github.com/MegatonHammer/linkle/blob/2d2206bfe287897bcb65923b290799527ca9b3e3/src/format/nca.rs#L264-L274
This comment was generated by todo based on a TODO comment in 2d2206bfe287897bcb65923b290799527ca9b3e3 in #34. cc @roblabla.
Bubble up the error.
https://github.com/MegatonHammer/linkle/blob/2d2206bfe287897bcb65923b290799527ca9b3e3/src/format/nca.rs#L627-L637
This comment was generated by todo based on a TODO comment in 2d2206bfe287897bcb65923b290799527ca9b3e3 in #34. cc @roblabla.
Bubble up the error.
https://github.com/MegatonHammer/linkle/blob/2d2206bfe287897bcb65923b290799527ca9b3e3/src/format/nca.rs#L649-L659
This comment was generated by todo based on a TODO comment in 2d2206bfe287897bcb65923b290799527ca9b3e3 in #34. cc @roblabla.
Now, verify the buffer.
https://github.com/MegatonHammer/linkle/blob/2d2206bfe287897bcb65923b290799527ca9b3e3/src/format/nca.rs#L741-L751