proxmark3/include/em4x70.h

33 lines
812 B
C
Raw Normal View History

//-----------------------------------------------------------------------------
// Copyright (C) 2020 sirloins
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Low frequency EM4x70 structs
//-----------------------------------------------------------------------------
#ifndef EM4X70_H__
#define EM4X70_H__
2020-12-12 12:26:17 +08:00
#define EM4X70_NUM_BLOCKS 16
typedef struct {
bool parity;
2020-12-12 12:26:17 +08:00
// Used for writing address
uint8_t address;
uint16_t word;
// PIN to unlock
uint32_t pin;
2020-12-12 22:59:30 +08:00
// Used for authentication
uint8_t rnd[7];
uint8_t frnd[4];
} em4x70_data_t;
#endif /* EM4X70_H__ */