From 4b88c71e390274c800239a6ad977445c4006eea5 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 22 Aug 2021 14:04:54 +0200 Subject: [PATCH] Forgot new file... --- include/desfire.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/desfire.h diff --git a/include/desfire.h b/include/desfire.h new file mode 100644 index 000000000..b421ad564 --- /dev/null +++ b/include/desfire.h @@ -0,0 +1,18 @@ +#ifndef __DESFIRE_H +#define __DESFIRE_H + +#include "common.h" + +#define DESFIRE_MAX_CRYPTO_BLOCK_SIZE 16 +#define DESFIRE_MAX_KEY_SIZE 24 +#define DESFIRE_MAC_LENGTH 4 +#define DESFIRE_CMAC_LENGTH 8 + +typedef enum { + T_DES = 0x00, + T_3DES = 0x01, //aka 2K3DES + T_3K3DES = 0x02, + T_AES = 0x03 +} DesfireCryptoAlgorithm; + +#endif