FSPXI:CalcSavegameMAC: Difference between revisions

Piepie62 (talk | contribs)
m Input is read only PXI buffer
Piepie62 (talk | contribs)
Make CalcSavegameMAC more correct and descriptive
 
Line 24: Line 24:
|-
|-
| 6
| 6
| 0x100-byte DISA/DIFF input buffer pointer
| Input buffer pointer
|-
|-
| 7
| 7
Line 45: Line 45:
| Result code
| Result code
|}
|}
=Usage=
Used to calculate CMACs as stored in in [[DISA_and_DIFF#AES_CMAC|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 ([[DISA_and_DIFF#CTR-SIGN|CTR-SIGN]] or [[DISA_and_DIFF#CTR-NOR0|CTR-NOR0]]), the stacking is applied properly on top of the inner CMAC types.