7#ifndef LOGICALACCESS_STORAGECARDSERVICE_HPP
8#define LOGICALACCESS_STORAGECARDSERVICE_HPP
47 virtual void erase(std::shared_ptr<Location> location,
48 std::shared_ptr<AccessInfo> aiToUse) = 0;
58 virtual void writeData(std::shared_ptr<Location> location,
59 std::shared_ptr<AccessInfo> aiToUse,
60 std::shared_ptr<AccessInfo> aiToWrite,
const ByteVector &data,
72 std::shared_ptr<AccessInfo> aiToUse,
size_t length,
84 std::shared_ptr<AccessInfo> aiToUse) = 0;
92 return last_read_signature_;
The base card service class for all services.
Definition: cardservice.hpp:50
The base storage card service class for all storage services.
Definition: storagecardservice.hpp:30
SignatureResult last_read_signature_
Definition: storagecardservice.hpp:96
SignatureResult IKS_getLastReadSignature()
Definition: storagecardservice.hpp:90
virtual void erase(std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse)=0
Erase a specific location on the card.
virtual void writeData(std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse, std::shared_ptr< AccessInfo > aiToWrite, const ByteVector &data, CardBehavior behaviorFlags)=0
Write data on a specific location, using given keys.
virtual ByteVector readData(std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse, size_t length, CardBehavior behaviorFlags)=0
Read data on a specific location, using given keys.
virtual ByteVector readDataHeader(std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse)=0
Read data header on a specific location, using given keys.
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
CardServiceType
The card services.
Definition: cardservice.hpp:35
@ CST_STORAGE
Definition: cardservice.hpp:39
CardBehavior
The card behaviors.
Definition: storagecardservice.hpp:20
@ CB_AUTOSWITCHAREA
Definition: storagecardservice.hpp:22
@ CB_DEFAULT
Definition: storagecardservice.hpp:21
Definition: RemoteCrypto.hpp:9