Keypop Storage Card C++ API - 1.2.0
Component of the Keypop C++ API
StorageCardSelectionExtension.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2026 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * This program and the accompanying materials are made available under the *
5 * terms of the MIT License which is available at *
6 * https://opensource.org/licenses/MIT *
7 * *
8 * SPDX-License-Identifier: MIT *
9 ******************************************************************************/
10
11#pragma once
12
13#include <cstdint>
14#include <vector>
15
16#include "keypop/reader/selection/spi/CardSelectionExtension.hpp"
19
20namespace keypop {
21namespace storagecard {
22namespace card {
23
24using keypop::reader::selection::spi::CardSelectionExtension;
26
34class StorageCardSelectionExtension : public CardSelectionExtension {
35public:
39 virtual ~StorageCardSelectionExtension() = default;
40
56 = 0;
57
74 prepareReadBlocks(int fromBlockAddress, int toBlockAddress) = 0;
75
93
130 int blockAddress,
131 MifareClassicKeyType mifareClassicKeyType,
132 const std::vector<uint8_t>& key) = 0;
133
159 int blockAddress,
160 MifareClassicKeyType mifareClassicKeyType,
161 int keyNumber) = 0;
162};
163
164} /* namespace card */
165} /* namespace storagecard */
166} /* namespace keypop */
Extends the CardSelectionExtension interface of the "Keypop Reader API" to provide means to define op...
virtual StorageCardSelectionExtension & prepareSt25ReadSystemBlock()=0
Prepares the reading of the system block from an ST25/SRT512 storage card.
virtual StorageCardSelectionExtension & prepareReadBlocks(int fromBlockAddress, int toBlockAddress)=0
Prepares the reading of a range of blocks from the storage card.
virtual StorageCardSelectionExtension & prepareReadBlock(int blockAddress)=0
Prepares the reading of a specific block from the storage card.
virtual StorageCardSelectionExtension & prepareMifareClassicAuthenticate(int blockAddress, MifareClassicKeyType mifareClassicKeyType, int keyNumber)=0
Prepares a Mifare Classic authentication command using a key stored in the reader.
virtual StorageCardSelectionExtension & prepareMifareClassicAuthenticate(int blockAddress, MifareClassicKeyType mifareClassicKeyType, const std::vector< uint8_t > &key)=0
Prepares a Mifare Classic authentication command using a provided key.
MifareClassicKeyType
Enumeration of the Mifare Classic key types used for authentication.