Merge pull request #2593 from Akury83/master
[RRG-proxmark3.git] / include / desfire.h
blob37716f11d9e1bbdfcab0c7e57d9271a3d179e57e
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 #ifndef __DESFIRE_H
17 #define __DESFIRE_H
19 #include "common.h"
21 #define DESFIRE_MAX_CRYPTO_BLOCK_SIZE 16
22 #define DESFIRE_MAX_KEY_SIZE 24
23 #define DESFIRE_MAC_LENGTH 4
24 #define DESFIRE_CMAC_LENGTH 8
26 typedef enum {
27 T_DES = 0x00,
28 T_3DES = 0x01, //aka 2K3DES
29 T_3K3DES = 0x02,
30 T_AES = 0x03
31 } DesfireCryptoAlgorithm;
33 #endif