|
| | 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 |
| |
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.
|
| |
The DESFire EV1 base commands class.
| virtual void logicalaccess::DESFireEV1Commands::setConfiguration |
( |
bool |
formatCardEnabled, |
|
|
bool |
randomIdEnabled |
|
) |
| |
|
pure virtual |
Read data from a specific file.
- Parameters
-
| fileno | The file number |
| offset | The byte offset |
| length | The data length to read |
| data | The data buffer |
| mode | The communication mode |
- Returns
- The number of bytes read.
Read record from a specific record file.
- Parameters
-
| fileno | The file number |
| offset | The byte offset |
| length | The length to read |
| data | The data buffer |
| mode | The communication mode |
- Returns
- The number of bytes read.
Change file settings of a specific file in the current application.
- Parameters
-
| fileno | The file number |
| comSettings | The file communication setting |
| accessRights | The file access rights |
| plain | Communication is currently in plain data. |
- Returns
- True on success, false otherwise.
Change key settings for the current application.
- Parameters
-
| settings | The new key settings |
- Returns
- True on success, false otherwise.
Change a key in the current application.
- Parameters
-
| keyno | The key number to change |
| key | The new key |
- Returns
- True on success, false otherwise.
Get the card version information.
- Parameters
-
| dataVersion | The card version information structure that will be filled |
- Returns
- True on success, false otherwise.
Get the current application list.
- Returns
- The application list.
Get the File IDentifiers of all active files within the currently selected application
- Returns
- The file ID list.
Get value from a specific value file.
- Parameters
-
| fileno | The file number |
| mode | The communication mode |
| value | The value stored in the card |
- Returns
- True on success, false otherwise.
Set the card configuration.
- Parameters
-
| formatCardEnabled | If true, the format card command is enabled. |
| randomIdEnabled | If true, the CSN is random (can't be changed once activated). |
Implemented in logicalaccess::DESFireEV1ISO7816Commands, and logicalaccess::DESFireEV1STidSTRCommands.