5#ifndef LIBLOGICALACCESS_MIFAREPLUSUTILS_H
6#define LIBLOGICALACCESS_MIFAREPLUSUTILS_H
9#include <logicalaccess/plugins/cards/mifareplus/lla_cards_mifareplus_api.hpp>
14#define CMD_MIFAREPLUSSL0 "MifarePlusSL0"
18 MF_CARD_MASTER_KEY = 0x9000,
45 int detectSecurityLevel()
const;
55 bool probeLevel3()
const;
63 bool isLevel0()
const;
69 bool writePerso(uint8_t hex_addr_1, uint8_t hex_addr_2,
70 const std::array<uint8_t, 16> &data)
const;
75 bool writePerso(
const MifarePlusBlockKeyLocation &location,
76 const std::array<uint8_t, 16> &data)
const;
82 bool commitPerso()
const;
93 static bool is_trailing_block(uint8_t hex_addr1, uint8_t hex_addr2);
100 static bool validate_access_bytes(
const std::array<uint8_t, 16> &data);
#define CMD_MIFAREPLUSSL0
Definition: MifarePlusSL0Commands.hpp:14
The base commands class for all card commands.
Definition: commands.hpp:21
Definition: MifarePlusSL0Commands.hpp:30
virtual ~MifarePlusSL0Commands()
Definition: MifarePlusSL0Commands.hpp:42
MifarePlusSL0Commands()
Definition: MifarePlusSL0Commands.hpp:32
MifarePlusSL0Commands(std::string ct)
Definition: MifarePlusSL0Commands.hpp:37
enum LLA_CARDS_MIFAREPLUS_API MF_L1_CARD_AUTH_KEY
Definition: MifarePlusSL0Commands.hpp:22
enum LLA_CARDS_MIFAREPLUS_API MF_CARD_CONFIGURATION_KEY
Definition: MifarePlusSL0Commands.hpp:19
enum LLA_CARDS_MIFAREPLUS_API MF_L3_SWITCH_KEY
Definition: MifarePlusSL0Commands.hpp:21
enum LLA_CARDS_MIFAREPLUS_API MF_L2_SWITCH_KEY
Definition: MifarePlusSL0Commands.hpp:20
enum LLA_CARDS_MIFAREPLUS_API MifarePlusBlockKeyLocation
Definition: MifarePlusSL0Commands.hpp:16