]> git.zerfleddert.de Git - proxmark3-svn/blob - client/mifare/mifaredefault.h
Merge branch 'master' into fix_iclass_sim
[proxmark3-svn] / client / mifare / mifaredefault.h
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2017 Merlok
3 //
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
6 // the license.
7 //-----------------------------------------------------------------------------
8 // Mifare default constants
9 //-----------------------------------------------------------------------------
10
11 #ifndef MIFAREDEFAULT_H__
12 #define MIFAREDEFAULT_H__
13
14 #include <inttypes.h>
15
16 #define MifareDefaultKeysSize sizeof(MifareDefaultKeys) / sizeof(uint64_t)
17
18 static const uint64_t MifareDefaultKeys[] =
19 {
20 0xffffffffffff, // Default key (first key used by program if no user defined key)
21 0x000000000000, // Blank key
22 0xa0a1a2a3a4a5, // NFCForum MAD key
23 0xb0b1b2b3b4b5,
24 0xaabbccddeeff,
25 0x1a2b3c4d5e6f,
26 0x123456789abc,
27 0x010203040506,
28 0x123456abcdef,
29 0xabcdef123456,
30 0x4d3a99c351dd,
31 0x1a982c7e459a,
32 0xd3f7d3f7d3f7,
33 0x714c5c886e97,
34 0x587ee5f9350f,
35 0xa0478cc39091,
36 0x533cb6c723f6,
37 0x8fd0a4f256e9
38 };
39
40 static const uint8_t g_mifare_mad_key[] = {0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5};
41 static const uint8_t g_mifare_ndef_key[] = {0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7};
42 static const uint8_t g_mifarep_mad_key[] = {0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7};
43 static const uint8_t g_mifarep_ndef_key[] = {0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7};
44
45 #endif
Impressum, Datenschutz