|
| DESFireEV1STidSTRCommands () |
| Constructor.
|
|
| DESFireEV1STidSTRCommands (std::string) |
|
virtual | ~DESFireEV1STidSTRCommands () |
| Destructor.
|
|
ByteVector | scanDESFire () const |
| Scan the RFID field for DESFire tag.
|
|
void | releaseRFIDField () const |
| Release the RFID field.
|
|
void | changePPS (STidDESFireBaudrate readerToChipKbps, STidDESFireBaudrate chipToReaderKbps) const |
| Change the communication speed between the reader and the chip.
|
|
unsigned int | getFreeMem () override |
| Get the value of available bytes.
|
|
std::vector< DFName > | getDFNames () override |
| Get the ISO DF-Names of all active application.
|
|
std::vector< unsigned short > | getISOFileIDs () override |
| Get the ISO FID of all active files within the currently selected application.
|
|
virtual void | erase () |
| Erase the card.
|
|
virtual void | createApplication (unsigned int aid, DESFireKeySettings settings, unsigned char maxNbKeys) |
| Create a new application.
|
|
void | createApplication (unsigned int aid, DESFireKeySettings settings, unsigned char maxNbKeys, DESFireKeyType cryptoMethod, FidSupport fidSupported=FIDS_NO_ISO_FID, unsigned short isoFID=0x00, ByteVector isoDFName=ByteVector()) override |
| Create a new application.
|
|
virtual void | deleteApplication (unsigned int aid) |
| Delete an application.
|
|
void | selectApplication (unsigned int aid) override |
| Select an application.
|
|
virtual void | getKeySettings (DESFireKeySettings &settings, unsigned char &maxNbKeys) |
| Get key settings on the current application.
|
|
void | getKeySettings (DESFireKeySettings &settings, unsigned char &maxNbKeys, DESFireKeyType &keyType) override |
| Get key settings on the current application.
|
|
ByteVector | getCardUID () override |
| Get a random card UID.
|
|
virtual void | createStdDataFile (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, unsigned int fileSize) |
| Create a new data file in the current application.
|
|
void | createStdDataFile (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, unsigned int fileSize, unsigned short isoFID) override |
| Create a new data file in the current application.
|
|
virtual void | commitTransaction () |
| Commit the transaction.
|
|
virtual void | abortTransaction () |
| Abort the transaction.
|
|
virtual void | createBackupFile (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, unsigned int fileSize) |
| Create a new backup file in the current application.
|
|
void | createBackupFile (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, unsigned int fileSize, unsigned short isoFID) override |
| Create a new backup file in the current application.
|
|
virtual void | createValueFile (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, int32_t lowerLimit, int32_t upperLimit, int32_t value, bool limitedCreditEnabled) |
| Create a new value file in the current application.
|
|
virtual void | createLinearRecordFile (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, unsigned int fileSize, unsigned int maxNumberOfRecords) |
| Create a new linear record file in the current application.
|
|
void | createLinearRecordFile (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, unsigned int fileSize, unsigned int maxNumberOfRecords, unsigned short isoFID) override |
| Create a new linear record file in the current application.
|
|
virtual void | createCyclicRecordFile (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, unsigned int fileSize, unsigned int maxNumberOfRecords) |
| Create a new cyclic record file in the current application.
|
|
void | createCyclicRecordFile (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, unsigned int fileSize, unsigned int maxNumberOfRecords, unsigned short isoFID) override |
| Create a new cyclic record file in the current application.
|
|
virtual void | loadKey (std::shared_ptr< DESFireKey > key) |
| Load a key in the reader memory.
|
|
virtual void | loadKey (ByteVector key, bool diversify, bool isVolatile) |
| Load a key in the reader memory.
|
|
virtual void | authenticate (STidKeyLocationType keylocation, unsigned char keyno, DESFireKeyType cryptoMethod, unsigned char keyindex) |
| Authenticate DESFire according to the key location.
|
|
virtual void | authenticate (unsigned char keyno) |
| Authenticate, given a key number.
|
|
virtual void | authenticate (unsigned char keyno, std::shared_ptr< DESFireKey > key) |
| Authenticate a block, given a key number.
|
|
void | authenticateISO (unsigned char keyno, DESFireISOAlgorithm algorithm=DF_ALG_2K3DES) override |
| AuthenticateISO command.
|
|
void | authenticateAES (unsigned char keyno) override |
| AuthenticateAES command.
|
|
virtual ByteVector | readData (unsigned char fileno, unsigned int offset, unsigned int length, EncryptionMode mode) |
| Read data from a specific file.
|
|
virtual void | writeData (unsigned char fileno, unsigned int offset, const ByteVector &data, EncryptionMode mode) |
| Write data into a specific file.
|
|
virtual void | credit (unsigned char fileno, unsigned int value, EncryptionMode mode) |
| Credit a specific value file.
|
|
virtual void | debit (unsigned char fileno, unsigned int value, EncryptionMode mode) |
| Debit a specific value file.
|
|
virtual void | limitedCredit (unsigned char fileno, unsigned int value, EncryptionMode mode) |
| Limit credit on a specific value file.
|
|
virtual void | writeRecord (unsigned char fileno, unsigned int offset, const ByteVector &data, EncryptionMode mode) |
| Write record into a specific record file.
|
|
virtual ByteVector | readRecords (unsigned char fileno, unsigned int offset, unsigned int length, EncryptionMode mode) |
| Read record from a specific record file.
|
|
virtual void | clearRecordFile (unsigned char fileno) |
| Clear a specific record file.
|
|
virtual void | changeFileSettings (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, bool plain) |
| Change file settings of a specific file in the current application.
|
|
virtual void | deleteFile (unsigned char fileno) |
| Delete a file in the current application.
|
|
virtual void | changeKeySettings (DESFireKeySettings settings) |
| Change key settings for the current application.
|
|
virtual void | changeKey (unsigned char keyno, std::shared_ptr< DESFireKey > key) |
| Change a key in the current application.
|
|
void | changeKeyIndex (unsigned char keyno, DESFireKeyType cryptoMethod, unsigned char keyversion, unsigned char newkeyindex, unsigned char oldkeyindex) const |
| Change the key indexed keyno by a new index or crypto method.
|
|
unsigned char | getKeyVersion (unsigned char keyno) const |
| Get the key version.
|
|
virtual void | getVersion (DESFireCommands::DESFireCardVersion &dataVersion) |
| Get the card version information.
|
|
virtual std::vector< unsigned int > | getApplicationIDs () |
| Get the current application list.
|
|
virtual ByteVector | getFileIDs () |
| Get the File IDentifiers of all active files within the currently selected application.
|
|
virtual void | getFileSettings (unsigned char fileno, DESFireCommands::FileSetting &fileSetting) |
| Get settings of a specific file in the current application.
|
|
virtual void | getValue (unsigned char fileno, EncryptionMode mode, unsigned int &value) |
| Get value from a specific value file.
|
|
void | setConfiguration (bool formatCardEnabled, bool randomIdEnabled) override |
| Set the card configuration.
|
|
void | setConfiguration (std::shared_ptr< DESFireKey > defaultKey) override |
| Set the card configuration default key. param defaultKey The new default key.
|
|
void | setConfiguration (const ByteVector &ats) override |
| Set a custom card ATS.
|
|
std::shared_ptr< Chip > | getChip () const override |
| Get the chip.
|
|
std::shared_ptr< ReaderCardAdapter > | getReaderCardAdapter () const override |
| Get the reader/card adapter.
|
|
std::shared_ptr< STidSTRReaderCardAdapter > | getSTidSTRReaderCardAdapter () const |
| Get the STidSTR reader/card adapter.
|
|
virtual void | createApplication (std::shared_ptr< DESFireEV1Location > location, DESFireKeySettings settings, unsigned char maxNbKeys) |
| Create a new application.
|
|
virtual void | createApplication (unsigned int aid, DESFireKeySettings settings, unsigned char maxNbKeys, DESFireKeyType cryptoMethod, FidSupport fidSupported=FIDS_NO_ISO_FID, unsigned short isoFID=0x00, ByteVector isoDFName=ByteVector())=0 |
| Create a new application.
|
|
virtual void | createStdDataFile (std::shared_ptr< DESFireEV1Location > location, const DESFireAccessRights &accessRights, unsigned int fileSize) |
| Create a new data file in the current application.
|
|
virtual void | createStdDataFile (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, unsigned int fileSize, unsigned short isoFID=0x00)=0 |
| Create a new data file in the current application.
|
|
Public Member Functions inherited from logicalaccess::Commands |
| Commands ()=delete |
| Constructor.
|
|
virtual | ~Commands () |
|
std::shared_ptr< Chip > | getChip () const override |
| Get the chip.
|
|
virtual void | setChip (std::shared_ptr< Chip > chip) |
| Set the chip.
|
|
std::shared_ptr< ReaderCardAdapter > | getReaderCardAdapter () const override |
| Get the reader/card adapter.
|
|
virtual void | setReaderCardAdapter (std::shared_ptr< ReaderCardAdapter > adapter) |
| Set the reader/card adapter.
|
|
virtual const std::string & | getCmdType () const |
| Get the cmd name.
|
|
virtual void | setCmdType (const std::string &command_type) |
| Set the cmd name.
|
|
Public Member Functions inherited from logicalaccess::ICommands |
virtual | ~ICommands ()=default |
|
virtual std::shared_ptr< Chip > | getChip () const =0 |
| Get the chip.
|
|
virtual std::shared_ptr< ReaderCardAdapter > | getReaderCardAdapter () const =0 |
| Get the reader/card adapter.
|
|
Public Member Functions inherited from logicalaccess::DESFireEV1Commands |
| DESFireEV1Commands ()=default |
|
virtual void | selectApplication (std::shared_ptr< DESFireEV1Location > location) |
| Select an application.
|
|
virtual void | createApplication (std::shared_ptr< DESFireEV1Location > location, DESFireKeySettings settings, unsigned char maxNbKeys) |
| Create a new application.
|
|
virtual void | createStdDataFile (std::shared_ptr< DESFireEV1Location > location, const DESFireAccessRights &accessRights, unsigned int fileSize) |
| Create a new data file in the current application.
|
|
virtual unsigned int | getFreeMem ()=0 |
| Get the value of available bytes.
|
|
virtual std::vector< DFName > | getDFNames ()=0 |
| Get the ISO DF-Names of all active application.
|
|
virtual std::vector< unsigned short > | getISOFileIDs ()=0 |
| Get the ISO FID of all active files within the currently selected application.
|
|
virtual void | selectApplication (unsigned int aid)=0 |
| Select an application.
|
|
virtual void | createApplication (unsigned int aid, DESFireKeySettings settings, unsigned char maxNbKeys, DESFireKeyType cryptoMethod, FidSupport fidSupported=FIDS_NO_ISO_FID, unsigned short isoFID=0x00, ByteVector isoDFName=ByteVector())=0 |
| Create a new application.
|
|
virtual void | getKeySettings (DESFireKeySettings &settings, unsigned char &maxNbKeys, DESFireKeyType &keyType)=0 |
| Get key settings on the current application.
|
|
virtual ByteVector | getCardUID ()=0 |
| Get a random card UID.
|
|
virtual void | createStdDataFile (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, unsigned int fileSize, unsigned short isoFID=0x00)=0 |
| Create a new data file in the current application.
|
|
virtual void | createBackupFile (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, unsigned int fileSize, unsigned short isoFID=0x00)=0 |
| Create a new backup file in the current application.
|
|
virtual void | createLinearRecordFile (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, unsigned int fileSize, unsigned int maxNumberOfRecords, unsigned short isoFID=0x00)=0 |
| Create a new linear record file in the current application.
|
|
virtual void | createCyclicRecordFile (unsigned char fileno, EncryptionMode comSettings, const DESFireAccessRights &accessRights, unsigned int fileSize, unsigned int maxNumberOfRecords, unsigned short isoFID=0x00)=0 |
| Create a new cyclic record file in the current application.
|
|
virtual void | authenticateISO (unsigned char keyno, DESFireISOAlgorithm algorithm=DF_ALG_2K3DES)=0 |
| AuthenticateISO command.
|
|
virtual void | authenticateAES (unsigned char keyno)=0 |
| AuthenticateAES command.
|
|
virtual void | setConfiguration (bool formatCardEnabled, bool randomIdEnabled)=0 |
| Read data from a specific file.
|
|
virtual void | setConfiguration (std::shared_ptr< DESFireKey > defaultKey)=0 |
| Set the card configuration default key. param defaultKey The new default key.
|
|
virtual void | setConfiguration (const ByteVector &ats)=0 |
| Set a custom card ATS.
|
|
virtual std::shared_ptr< ISO7816Commands > | getISO7816Commands () const |
|