SceneGate / Ekona

.NET implementation of DS and DSi file formats
https://scenegate.github.io/Ekona/
MIT License
25 stars 1 forks source link

🐛 Fix potential crash encrypting with Modcrypt, invalid header hash generation and corruption of Modcrypt after arm9 changes #36

Closed pleonex closed 4 months ago

pleonex commented 4 months ago

Fix several bugs related to Modcrypt (d)encryption and ROM header hash generation, especially after changes on the arm9 and/or its code parameters (such as compression length):

Also fix the build by installing .NET 6 SDK and bumping .NET 8 SDK.

Quality check list

Acceptance criteria

The Modcrypt key generation does not fail. Every hash of the encrypted content is valid after changing the arm9 content.

Follow-up work

None

Example

N/A