NFC services: Difference between revisions

XorTroll (talk | contribs)
Improved NFP structs, detailed some NFP commands, detailed amiibo information and structures
XorTroll (talk | contribs)
m Fix typos in my previous changes
Line 1,114: Line 1,114:
| 0 || Does no breaking, just flushes
| 0 || Does no breaking, just flushes
|-
|-
| 1 || Breaks the amiibo data SHA256 HMAC hash (see [[#Amiibo settings]])
| 1 || Breaks the amiibo data SHA256 HMAC hash (see [[#Plain format]])
|-
|-
| 2 || Breaks the amiibo header magic (see [[#Amiibo settings]])
| 2 || Breaks the amiibo header magic (see [[#Amiibo header]])
|}
|}
Value 0 is internally used in some places, aside for [[#BreakTag]] commands called externally.


= WriteType =
= WriteType =
Line 1,510: Line 1,508:
The country code ID is zeroed when calling [[#SetRegisterInfoPrivate]].
The country code ID is zeroed when calling [[#SetRegisterInfoPrivate]].


The application ID byte contains the original application ID hex-digit (only used for Switcj games, see [[#Application area version]]), so it can be to restore the original value (which is needed for [[#GetAdminInfo]]).
The application ID byte contains the original application ID hex-digit (only used for Switch games, see [[#Application area version]]), so it can be to restore the original value (which is needed for [[#GetAdminInfo]]).


The terminal ID is a randomly-generated 8-byte value that is re-generated every time [[#Initialize]] is called (thus every nfc/nfp/mifare session), and saved at [[Flash_Filesystem#SystemSaveData|data]]:/nfc_terminal_id.dat.
The terminal ID is a randomly-generated 8-byte value that is re-generated every time [[#Initialize]] is called (thus every nfc/nfp/mifare session), and saved at [[Flash_Filesystem#SystemSaveData|data]]:/nfc_terminal_id.dat.