Release v4.9237 - Ice Coffee :coffee:
[RRG-proxmark3.git] / client / deps / amiitool / keygen.h
blob4d1c21cea80e6f26edba870202e60ba3a3931447
1 /*
2 * (c) 2015-2017 Marcos Del Sol Vives
4 * SPDX-License-Identifier: MIT
5 */
7 #ifndef HAVE_NFC3D_KEYGEN_H
8 #define HAVE_NFC3D_KEYGEN_H
10 #include <stdint.h>
11 #include <stdbool.h>
13 #define NFC3D_KEYGEN_SEED_SIZE 64
15 #pragma pack(1)
16 typedef struct {
17 uint8_t hmacKey[16];
18 char typeString[14];
19 uint8_t rfu;
20 uint8_t magicBytesSize;
21 uint8_t magicBytes[16];
22 uint8_t xorPad[32];
23 } nfc3d_keygen_masterkeys;
25 typedef struct {
26 const uint8_t aesKey[16];
27 const uint8_t aesIV[16];
28 const uint8_t hmacKey[16];
29 } nfc3d_keygen_derivedkeys;
30 #pragma pack()
32 void nfc3d_keygen(const nfc3d_keygen_masterkeys *baseKeys, const uint8_t *baseSeed, nfc3d_keygen_derivedkeys *derivedKeys);
34 #endif