Release v4.9237 - Ice Coffee :coffee:
[RRG-proxmark3.git] / client / deps / amiitool / amiibo.h
blob47d544875da3b8302ab19e31590ae62ad47b2472
1 /*
2 * (c) 2015-2017 Marcos Del Sol Vives
3 * (c) 2016 javiMaD
5 * SPDX-License-Identifier: MIT
6 */
8 #ifndef HAVE_NFC3D_AMIIBO_H
9 #define HAVE_NFC3D_AMIIBO_H
11 #include <stdint.h>
12 #include <stdbool.h>
13 #include <string.h>
14 #include <stdio.h>
15 #include "keygen.h"
17 #define NFC3D_AMIIBO_SIZE 520
19 #pragma pack(1)
20 typedef struct {
21 nfc3d_keygen_masterkeys data;
22 nfc3d_keygen_masterkeys tag;
23 } nfc3d_amiibo_keys;
24 #pragma pack()
26 bool nfc3d_amiibo_unpack(const nfc3d_amiibo_keys *amiiboKeys, const uint8_t *tag, uint8_t *plain);
27 void nfc3d_amiibo_pack(const nfc3d_amiibo_keys *amiiboKeys, const uint8_t *plain, uint8_t *tag);
28 bool nfc3d_amiibo_load_keys(nfc3d_amiibo_keys *amiiboKeys, const char *path);
29 void nfc3d_amiibo_copy_app_data(const uint8_t *src, uint8_t *dst);
31 #endif