16#include "keypop/reader/transaction/spi/CardTransactionManager.hpp"
21namespace storagecard {
22namespace transaction {
24using keypop::reader::transaction::spi::CardTransactionManager;
63:
public CardTransactionManager<StorageCardTransactionManager> {
281 const std::vector<uint8_t>& key) = 0;
Provides methods to manage APDU exchanges with a storage card.
virtual StorageCardTransactionManager & prepareSt25WriteSystemBlock(const std::vector< uint8_t > &data)=0
Prepares the writing of data to the system block of an ST25/SRT512 storage card.
virtual StorageCardTransactionManager & prepareWriteBlocks(int fromBlockAddress, const std::vector< uint8_t > &data)=0
Prepares the writing of blocks of data to the storage card starting from a specific block number offs...
virtual ~StorageCardTransactionManager()=default
virtual StorageCardTransactionManager & prepareWriteSystemBlock(const std::vector< uint8_t > &data)=0
Prepares the writing of data to the system block of the storage card when present.
virtual StorageCardTransactionManager & prepareMifareClassicAuthenticate(int blockAddress, MifareClassicKeyType mifareClassicKeyType, int keyNumber)=0
Prepares a Mifare Classic authentication command using a key stored in the reader.
virtual StorageCardTransactionManager & prepareReadSystemBlock()=0
Prepares the reading of the system block from the storage card when present.
virtual StorageCardTransactionManager & prepareReadBlock(int blockAddress)=0
Prepares the reading of a specific block from the storage card.
virtual StorageCardTransactionManager & prepareMifareClassicAuthenticate(int blockAddress, MifareClassicKeyType mifareClassicKeyType, const std::vector< uint8_t > &key)=0
Prepares a Mifare Classic authentication command using a provided key.
virtual StorageCardTransactionManager & prepareReadBlocks(int fromBlockAddress, int toBlockAddress)=0
Prepares the reading of a range of blocks from the storage card.
virtual StorageCardTransactionManager & prepareSt25ReadSystemBlock()=0
Prepares the reading of the system block from an ST25/SRT512 storage card.
MifareClassicKeyType
Enumeration of the Mifare Classic key types used for authentication.