Line 86: |
Line 86: |
| | | |
| =Command 0x04020082= | | =Command 0x04020082= |
− | This is used for [[Amiibo]] key generation. 0x30-bytes are generated. The input buffer size must be 0x40-bytes. The content of the input buffer changes each time the [[Amiibo]] is written to. | + | This is used for [[Amiibo]] key generation. 0x30-bytes are generated. The input buffer size must be 0x40-bytes. |
| + | |
| + | Structure of the input buffer: |
| + | {| class="wikitable" border="1" |
| + | |- |
| + | ! Offset |
| + | ! Size |
| + | ! Description |
| + | |- |
| + | | 0x0 |
| + | | 0x2 |
| + | | This is the raw [[Amiibo]]-write counter u16 from page[4] byte1. |
| + | |- |
| + | | 0x2 |
| + | | 0xE |
| + | | All-zero. |
| + | |- |
| + | | 0x10 |
| + | | 0x8 |
| + | | This is the first 8-bytes of the NFC tag serial-number(page0-1). |
| + | |- |
| + | | 0x18 |
| + | | 0x8 |
| + | | Same 8-bytes as above. |
| + | |- |
| + | | 0x20 |
| + | | 0x20 |
| + | | This is the plaintext hash from NFC tag page[0x18], which is the hash listed under the page 0x15 section [[Amiibo|here]]. |
| + | |} |
| | | |
| =Command 0x04030044= | | =Command 0x04030044= |