AMPXI:ValidateDSiWareSectionMAC

AMPXI:ValidateDSiWareSectionMAC

Request #

Index WordDescription
0Header code [0x005500C4]
1Buf0 size (must be 0x10)
2Buf1 size (must be 0x20)
3u8, DSiWare section index
4(Buf0Size << 8) | 0x4
5Buf0 pointer
6(Buf1Size << 8) | 0x14
7Buf1 pointer

Response #

Index WordDescription
0Header code [0x00550040]
1Result code

Description #

This calculates an AES MAC over the 0x20-byte buf1 SHA-256 hash. When this MAC matches the MAC stored in buf0, result-code 0 is returned, otherwise an error is returned. This is used by AM module to verify the DSiWare section’s metadata MAC after decrypting the payload data.