EM4x70 Authentication support

This commit is contained in:
Christian Molson 2020-12-12 09:59:30 -05:00
commit a6024a8622
7 changed files with 138 additions and 1 deletions

View file

@ -23,6 +23,10 @@ typedef struct {
// PIN to unlock
uint32_t pin;
// Used for authentication
uint8_t rnd[7];
uint8_t frnd[4];
} em4x70_data_t;
#endif /* EM4X70_H__ */

View file

@ -519,6 +519,7 @@ typedef struct {
#define CMD_LF_EM4X70_INFO 0x0260
#define CMD_LF_EM4X70_WRITE 0x0261
#define CMD_LF_EM4X70_UNLOCK 0x0262
#define CMD_LF_EM4X70_AUTH 0x0263
// Sampling configuration for LF reader/sniffer
#define CMD_LF_SAMPLING_SET_CONFIG 0x021D
#define CMD_LF_FSK_SIMULATE 0x021E