FSPXI:CalcSavegameMAC

FSPXI:CalcSavegameMAC

Request #

Index WordDescription
0Header code [0x000C0104]
1File handle lower word
2File handle upper word
3Output MAC buffer size
4Input buffer size
5(inputbuf_size<<8) | 6
6Input buffer pointer
7| (macbuf_size<<8) | 0x14
8MAC output buffer pointer

Response #

Index WordDescription
0Header code
1Result code

Usage #

Used to calculate CMACs as stored in in DISA/DIFF files. The file handle that is passed in determines the type of CMAC to calculate. The input buffer data is used as the input data for the CMAC type chosen, and, in the case of stacked CMAC types ( CTR-SIGN or CTR-NOR0), the stacking is applied properly on top of the inner CMAC types.