mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
chg: LF t55xx trace
new: LF t55xx info
This commit is contained in:
parent
75465377b9
commit
f6c18637ca
25 changed files with 929 additions and 804 deletions
|
@ -1,9 +1,10 @@
|
|||
#ifndef __DESFIRE_H
|
||||
#define __DESFIRE_H
|
||||
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "aes.h"
|
||||
#define DESFIRE(tag) ((struct desfire_tag *) tag)
|
||||
#define DESFIRE_KEY(key) ((struct desfire_key *) key)
|
||||
|
||||
#define MAX_CRYPTO_BLOCK_SIZE 16
|
||||
/* Mifare DESFire EV1 Application crypto operations */
|
||||
|
@ -65,8 +66,9 @@ enum DESFIRE_CRYPTOALGO {
|
|||
T_AES = 0x03
|
||||
};
|
||||
|
||||
struct desfire_key {
|
||||
|
||||
#define DESFIRE_KEY(key) ((struct desfire_key *) key)
|
||||
struct desfire_key {
|
||||
enum DESFIRE_CRYPTOALGO type;
|
||||
uint8_t data[24];
|
||||
// DES_key_schedule ks1;
|
||||
|
@ -77,9 +79,9 @@ struct desfire_key {
|
|||
uint8_t cmac_sk2[24];
|
||||
uint8_t aes_version;
|
||||
};
|
||||
|
||||
typedef struct desfire_key *desfirekey_t;
|
||||
|
||||
#define DESFIRE(tag) ((struct desfire_tag *) tag)
|
||||
struct desfire_tag {
|
||||
iso14a_card_select_t info;
|
||||
int active;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue