7#ifndef LOGICALACCESS_SAMAV2ISO7816CARDPROVIDER_HPP
8#define LOGICALACCESS_SAMAV2ISO7816CARDPROVIDER_HPP
24#define AV2_HEADER_LENGTH 0x05
25#define AV2_HEADER_LENGTH_WITH_LE 0x06
26#define AV2_LC_POS 0x04
27#define CMD_SAMAV2ISO7816 "SAMAV2ISO7816"
30%
template(SAMISO7816KeyEntrySETAV2Commands)
31 SAMISO7816Commands<KeyEntryAV2Information, SETAV2>;
57 void authenticateHost(std::shared_ptr<DESFireKey> key,
unsigned char keyno)
override;
59 std::shared_ptr<SAMKeyEntry<KeyEntryAV2Information, SETAV2>>
60 getKeyEntry(
unsigned char keyno)
override;
61 std::shared_ptr<SAMKucEntry> getKUCEntry(
unsigned char kucno)
override;
63 void changeKUCEntry(
unsigned char kucno, std::shared_ptr<SAMKucEntry> kucentry,
64 std::shared_ptr<DESFireKey> key)
override;
66 changeKeyEntry(
unsigned char keyno,
68 std::shared_ptr<DESFireKey> key)
override;
72 ByteVector dumpSecretKey(
unsigned char keyno,
unsigned char keyversion,
75 void activateOfflineKey(
unsigned char keyno,
unsigned char keyversion,
84 std::shared_ptr<Chip>
getChip()
const override
101 static void getLcLe(
ByteVector cmd,
bool &lc,
unsigned char &lcvalue,
bool &le);
std::shared_ptr< ReaderCardAdapter > getReaderCardAdapter() const override
Get the reader/card adapter.
Definition: commands.hpp:52
std::shared_ptr< Chip > getChip() const override
Get the chip.
Definition: commands.hpp:34
Definition: samav2commands.hpp:18
The DESFire base commands class.
Definition: samav2iso7816commands.hpp:43
ByteVector d_macSessionKey
Definition: samav2iso7816commands.hpp:105
unsigned int d_cmdCtr
Definition: samav2iso7816commands.hpp:109
std::shared_ptr< Chip > getChip() const override
Get the chip.
Definition: samav2iso7816commands.hpp:84
std::shared_ptr< ReaderCardAdapter > getReaderCardAdapter() const override
Get the reader/card adapter.
Definition: samav2iso7816commands.hpp:89
ByteVector d_lastMacIV
Definition: samav2iso7816commands.hpp:107
The SAMISO7816 commands class.
Definition: samiso7816commands.hpp:52
A SAMKeyEntry class.
Definition: samkeyentry.hpp:90
Default ISO7816 reader/card adapter.
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80