===== 5.1 PCSC cards Error codes ===== [[http://192.168.241.14/pcsclite/doxygen/html/pcsclite_8h.html|pcsclite]] ===== 5.2 IDS SAM error codes ===== ** IDS SAM error codes ** \\ SW_TLV_NOT_FOUND = 0x6a72; SW_BAD_STATE = 0x6a74; SW_RND_ERROR = 0x6a75; SW_INTERNAL_AUTH_FAIL = 0x6a76; SW_TLV_BAD_LENGHT = 0x6a77; SW_BAD_VALUE = 0x6a78; SW_KEYSET_FULL = 0x6a79; SW_AID_FULL = 0x6a7a; /* ak nesedi podpis ... asi*/ SW_BAD_DEPENDENS = 0x6a7b; /* pred APDU SIGN_PURSE nebola vykonaná verifikácia - Nie je overena penazenka.*/ SW_NID_NOT_FOUND = 0x6a7c; SW_AID_NOT_FOUND = 0x6a7d; (SendChallenge chybajuci kluc) -predtym6a7b SW_KEY_VERSION_NOT_FOUND = 0x6a7e; SW_ALG_NOT_SUPPORT = 0x6a80; SW_NOT_EXIST_TYP_KEY = 0x6a81; SW_WRONG_P1P2 = 0x6a86; \\ ===== 5.3 General smart cards error codes ===== ** General error codes ** \\ +-------+--------------------------------------------------------------------------------------------------------------+ |SW1 SW2| Message | +-------+--------------------------------------------------------------------------------------------------------------+ |'6X XX'| Transmission protocol related codes | |'61 XX'| SW2 indicates the number of response bytes still available | +-------+--------------------------------------------------------------------------------------------------------------+ |'62 00'| No information given | |'62 81'| Returned data may be corrupted | |'62 82'| The end of the file has been reached before the end of reading | |'62 83'| Invalid DF | |'62 84'| Selected file is not valid. File descriptor error | +-------+--------------------------------------------------------------------------------------------------------------+ |'63 00'| Authentification failed. Invalid secret code or forbidden value | |'63 81'| File filled up by the last write | |'63 CX'| Counter provided by 'X' (valued from 0 to 15) (exact meaning depending on the command) | +-------+--------------------------------------------------------------------------------------------------------------+ |'64 00'| Execution Error, State of non-volatile memory unchanged. | | | Will be output if memory errors or inconsistencies are discoverd when the data is read. | | | This return code is not applicaton specific and will be controlled by the operating system. | +-------+--------------------------------------------------------------------------------------------------------------+ |'65 01'| Memory failure. There have been problems in writing or reading the EEPROM. | | | Other hardware problems may also bring this error. | |'65 81'| Write problem / Memory failure / Unknown mode | +-------+--------------------------------------------------------------------------------------------------------------+ |'67 XX'| Error, incorrect parameter P3 (ISO code) | |'67 00'| Incorrect length or address range error | +-------+--------------------------------------------------------------------------------------------------------------+ |'68 00'| The request function is not supported by the card. | |'68 81'| Logical channel not supported | |'68 82'| Secure messaging not supported | |'68 83'| Final command expected | +-------+--------------------------------------------------------------------------------------------------------------+ |'69 00'| No successful transaction executed during session | |'69 81'| Cannot select indicated file, command not compatible with file organization | |'69 82'| Access conditions not fulfilled | |'69 83'| Secret code locked | |'69 84'| Referenced data invalidated | |'69 85'| No currently selected EF, no command to monitor / no Transaction Manager File | |'69 86'| Command not allowed (no current EF) | |'69 87'| Expected SM data objects missing | |'69 88'| SM data objects incorrect | +-------+--------------------------------------------------------------------------------------------------------------+ |'6A 00'| Bytes P1 and/or P2 are incorrect. | |'6A 80'| The parameters in the data field are incorrect | |'6A 81'| Card is blocked or command not supported | |'6A 82'| File not found | |'6A 83'| Record not found | |'6A 84'| There is insufficient memory space in record or file | |'6A 85'| Lc inconsistent with TLV structure | |'6A 86'| Incorrect parameters P1-P2 | |'6A 87'| The P3 value is not consistent with the P1 and P2 values. | |'6A 88'| Referenced data not found. | +-------+--------------------------------------------------------------------------------------------------------------+ |'6B 00'| Incorrect reference; illegal address; Invalid P1 or P2 parameter | +-------+--------------------------------------------------------------------------------------------------------------+ |'6C XX'| Incorrect P3 length. | +-------+--------------------------------------------------------------------------------------------------------------+ |'6D 00'| Command not allowed. Invalid instruction byte (INS) | +-------+--------------------------------------------------------------------------------------------------------------+ |'6E 00'| Incorrect application (CLA parameter of a command) | +-------+--------------------------------------------------------------------------------------------------------------+ |'6F 00'| Checking error | +-------+--------------------------------------------------------------------------------------------------------------+ |'90 00'| Command executed without error | +-------+--------------------------------------------------------------------------------------------------------------+ |'91 00'| Purse Balance error cannot perform transaction | |'91 02'| Purse Balance error | +-------+--------------------------------------------------------------------------------------------------------------+ |'92 XX'| Memory error | |'92 02'| Write problem / Memory failure | |'92 40'| Error, memory problem | +-------+--------------------------------------------------------------------------------------------------------------+ |'94 XX'| File error | |'94 04'| Purse selection error or invalid purse | |'94 06'| Invalid purse detected during the replacement debit step | |'94 08'| Key file selection error | +-------+--------------------------------------------------------------------------------------------------------------+ |'98 XX'| Security error | |'98 00'| Warning | |'98 04'| Access authorization not fulfilled | |'98 06'| Access authorization in Debit not fulfilled for the replacement debit step | |'98 20'| No temporary transaction key established | |'98 34'| Error, Update SSD order sequence not respected | | | (should be used if SSD Update commands are received out of sequence). | +-------+--------------------------------------------------------------------------------------------------------------+ |'9F XX'| Success, XX bytes of data available to be read via "Get_Response" task. | +-------+--------------------------------------------------------------------------------------------------------------+ ===== 5.4 Desfire error codes ===== ** Desfire error codes ** \\ +-------+---------------------------------------------------------------------------------------------------------------+ |SW1 SW2| Message | +-------+---------------------------------------------------------------------------------------------------------------+ |'91 00'| OPERATION_OK - Successful operation | |'91 0C'| NO_CHANGES - No changes done to backup files, CommitTransaction / AbortTransaction not necessary | |'91 0E'| OUT_OF_EEPROM_ERROR | |'91 1C'| ILLEGAL_COMMAND_CODE | |'91 1E'| INTEGRITY ERROR | |'91 40'| NO_SUCH_KEY | |'91 7E'| LENGTH_ERROR | |'91 9D'| PERMISSION_DENIED | |'91 9E'| PARAMETER_ERROR | |'91 A0'| APPLICATION_NO_FOUND | |'91 A1'| APPL_INTEGRITY_ERROR | |'91 AE'| AUTHENTICATION_ERROR | |'91 AF'| ADDITIONAL_FRAME | |'91 BE'| BOUNDARY_ERROR | |'91 C1'| PICC_INTEGRITY_ERROR | |'91 CA'| COMMAND_ABORTED | |'91 CD'| PICC_DISABLED_ERROR | |'91 CE'| COUNT_ERROR | |'91 DE'| DUPLICATE_ERROR | |'91 EE'| EEPROM_ERROR | |'91 F0'| FILE_NOT_FOUND | |'91 F1'| FILE_INTEGRITY_ERROR | +-------+---------------------------------------------------------------------------------------------------------------+ ===== 5.5 XT SAM Error Codes ===== ** XT SAM Error Codes ** \\ enum EMskSamErrorCodesEnum { STATUS_OPERATION_OK = 0, STATUS_SAM_LOCKED = 1, STATUS_OPERATION_UNKNOWN = 2, STATUS_OPERATION_INVALIDPARAMETER = 3, STATUS_HSM_CANTGETKEYS = 4, STATUS_CRYPTO_ERROR = 5, STATUS_ACCESSCARD_CANTGETPIN = 6, STATUS_ACCESSCARD_INCORRECTPIN = 7, STATUS_CHECKSUM_BADCRC = 8, STATUS_AUTHENTIFICATE_ERROR = 9, STATUS_SELECTAPPLICATION_ERROR = 10, // moze sa stavat pri zle naladenej antene - karta neodpovedala na komand select STATUS_SHAREABLEINTERFACE_ERROR = 11, STATUS_CREATEAPPLICATION_ERROR = 12, STATUS_CHANGEKEY_ERROR = 13, STATUS_FORMAT_ERROR = 14, STATUS_CREATESTDDATAFILE_ERROR = 15, STATUS_ACCESSCARD_CANTWRITEPIN_ERROR = 16, STATUS_CHANGEFILESETTINGS_ERROR = 17, STATUS_CHANGEKEYSETTINGS_ERROR = 18, STATUS_CREATEVALUEFILE_ERROR = 19, STATUS_WRITEDATA_ERROR = 20, STATUS_LOADKEYS_ERROR = 21, STATUS_READDATA_ERROR = 22, STATUS_SIGNDATA_ERROR = 23, STATUS_VERIFYSIGN_ERROR = 24, STATUS_NOSUCHKEY_ERROR = 25, STATUS_HSM_ERROR = 26, STATUS_ACCESSCARD_CANTWRITEINFO_ERROR = 27, STATUS_ACCESSCARD_CANTGETINFO = 28, STATUS_COMMITTRANSTACTION_ERROR = 29, STATUS_ABORTTRANSACTION_ERROR = 30, STATUS_NOKEYSPECIFIED_ERROR = 31, STATUS_UNKNOWNAPPLICATIONID_ERROR = 32, STATUS_DELETEAPPLICATION_ERROR = 33, STATUS_SAM_DEACTIVATED = 34, STATUS_GETKEYSETTINGS_ERROR = 35, STATUS_CHECKSUM_COMPUTE_ERROR = 36, STATUS_APP_NO_DATA = 37, STATUS_NO_CPS_IN_MAD = 38, STATUS_NO_CHS_IN_MAD = 39, STATUS_NO_DOS_IN_MAD = 40, STATUS_UNINITIALIZED_CARD = 41, STATUS_INVALID_CHECKSUM_ERROR = 42, STATUS_INVALID_RANDOM_ERROR = 43, STATUS_UNKNOWNFILENO_ERROR = 44, STATUS_DEBET_NOT_ALLOWED_ERROR = 45, STATUS_MAX_DEBIT_EXCEEDED_ERROR = 46, STATUS_MIN_VALUE_EXCEEDED_ERROR = 47, STATUS_VALIDITY_EXPIRED_ERROR = 48, STATUS_BAD_VALUE_ERROR = 49, STATUS_MAX_CREDIT_EXCEEDED_ERROR = 50, STATUS_MAX_VALUE_EXCEEDED_ERROR = 51, STATUS_STATUS_SAM_IS_BLOCKED = 52, STATUS_STATUS_MD5_ERROR = 53, STATUS_FILE_STATUS_ERROR = 54, STATUS_INVALID_SESSION_KEY_ERROR = 55, STATUS_UNLOCK_CARD_IS_NEEDED_ERROR = 56, STATUS_OPERATION_COUNT_IS_ZERO_ERROR = 57, STATUS_NETWORKID_ERROR = 58, STATUS_PROVIDER_ERROR = 59, STATUS_ADDITIONAL_FRAME = 0xAF }; enum t_MSK_Command { UNKNOWN = 0, CARD_INFO = 1, CARD_HOLDER_INFO = 2, BENEFIT = 3, ALL_TICKETS = 4, TICKET = 5, CHECK_TICKET = 6, SEAT_TICKET = 7, WALLET_SETTINGS = 8, WALLET_PERSONAL_SETTINGS = 9, DEBIT = 10, PURSE = 11, CREDIT = 12, CANCEL_DEBIT = 13, LOG_PURSE = 14, IS_SAM_UNLOCKED = 15, PIN = 16, UNBLOCK = 17, SERVICE_DATA = 18, TRANSFER_DATA = 19 }; ===== 5.6 PT applications errors list ===== ** PT applications errors list ** \\ APL_OK = 0, /**< OK */ APL_ERROR_IGNORE = 1, /**< Just for internal purpose */ APL_ERROR_OTHER_COMPANY = 2, /**< Other company */ APL_ERROR_BLOCKED_CARD = 3, /**< Card blocked */ APL_ERROR_CARD_WAS_BLOCKED = 4, /**< Card was blocked right now */ APL_ERROR_TIMEOUT = 5, /**< Timeout */ APL_ERROR_OTHER_CARD = 6, /**< Other card */ APL_ERROR_NO_MAPPER = 7, /**< No mapper found */ APL_ERROR_NO_SPACE_FOR_TICKET = 8, /**< There is no space for ticket to write */ APL_ERROR_STORNO_CARD = 9, /**< Card cannot be cancelled */ APL_ERROR_CARD_NOT_SOLD = 10, /**< Card not sold */ APL_ERROR_CANT_BE_SELL = 11, /**< Card can't be sold */ APL_ERROR_AID_NOT_ALLOWED = 12, /**< Application id not allowed */ APL_ERROR_IGNORE_APL = 13, /**< Just for internal purpose */ APL_ERROR_NO_KEY_FOUND = 14, /**< No key found for application id */ APL_ERROR_NOT_STUDENT = 15, /**< Not student card */ APL_ERROR_MANIPULATED_CARD_HOLDER = 16, /**< Manipulated card holder sign */ APL_ERROR_MANIPULATED_PURSE = 17, /**< Manipulated purse sign */ APL_ERROR_PURSE_CHANGE_TYPE_ERROR = 18, /**< Wrong purse change type */ APL_ERROR_LIBRARY_NOT_LOADED = 19, /**< Library not loaded */ APL_ERROR_THREADS_NOT_STARTED = 20, /**< Threads not started */ APL_ERROR_OPEN_READER = 21, /**< Open reader error */ APL_ERROR_ONE_WAY_TICKET_WRITE_TYPE = 22, /**< One way ticket write type error */ APL_ERROR_OPEN_SAM_READER = 23, /**< Open SAM reader error */ APL_ERROR_SAM = 24, /**< SAM module error */ APL_ERROR_NO_SPACE_FOR_AID = 25, /**< No space for aid */ APL_ERROR_MANIPULATED_SIGN = 26, /**< Manipulated sign */ APL_ERROR_WRITE_WITHOUT_READ = 27, /**< Write without read */ APL_ERROR_WRITE_DATA = 28, /**< Common write error */ APL_ERROR_EVENT_EQUAL = 29, /**< Error writing event - event equal */ APL_ERROR_EVENT_ERROR = 30, /**< Error writing event - new event number != event number + 1 */ APL_ERROR_NO_CARD = 31, /**< Not used */ APL_ERROR_CRYPTO_SIGN = 32, /**< Error decrypt data */ APL_ERROR_NEGATIVE_VALUE_NOT_ALLOWED = 33, /**< Used at Purses where inc/dev value is negative */ APL_ERROR_NEGATIVE_PURSE_NOT_ALLOWED = 34, /**< Used at DesfirePurse, if inc/dec value is negative */ APL_ERROR_NID_PURSE_NOT_EXIST = 35, /**< If IsReadNonAssignedVirtualCardEnabled is false for aid DES_AID_FARE_DATA */ APL_INTERNAL_PT_ERROR_UNCORRECT_DATA_TYPE = 36, /**< If uncorrect data type is appeared*/ APL_ERROR_NO_SAM = 37, /**< NO SAM / SAM NO INITIALIZED */ APL_ERROR_MSK_SAM_NOT_UNLOCKED = 38, /**< MSK sam is locked, unlocking card is needed - NOT USED */ APL_ERROR_NO_DATA_TO_WRITE = 39, /**< If empty request arrive, PT returns this error */ APL_ERROR_NETWORKID_ERROR = 40, /**< Wrong networkID at unlocking MSK SAM - NOT USED */ APL_ERROR_PROVIDER_ERROR = 41, /**< Wrong providerID at unlocking MSK SAM - NOT USED */ APL_CARD_AUTHENTICATION_ERROR = 42, /**< CARD AUTHENTICATION ERROR */ APL_MF_STANDARD_WRITE_KEY_ERROR = 43, /**< Mifare Standard KeySettings Write Error */ APL_NO_NID = 44, /**< Application haven't sent NID to PT (NID = 0) */ APL_INVALID_NID = 45, /**< Error if IDS SAM exist and application send invalid NetworkID to PT */ APL_REQUEST_NOT_SENT = 46, /**< Request not sent */ APL_CHIPCARD_NOT_READY = 47, /**< Return value in chipcard in function SendRequest */ APL_SEND_MESSAGE_ERROR = 48, /**< An error occurred during SendMessage to servicePT */ APL_SYNCH_REQ_TIMEOUT_NO_DATA = 49, /**< WaitTimeout for synchronous data expired */ APL_READ_ERROR = 50, /**< An error ocurred during synchronous read */ APL_SERIALIZE_ERROR = 51, /**< An error occured when data serialization failed */ APL_DESERIALIZE_ERROR = 52, /**< An error occured when data deserialization failed */ APL_ERROR_OPEN_SW_SAM = 53, /**< Open SW SAM error */ APL_PT_DES_TRANSACTION_DONE = 54, /**< Transakcia na deskarte sa ukoncila korektne */ APL_PT_NO_ADRESARCK = 55, /**< Neexistuje AdresarCK.xml */ APL_PT_WRONG_ADRESARCK_VERSION = 56, /**< Chybna verzia AdresarCK.xml */ APL_PT_NO_PTCONFIG = 57, /**< Neexistuje PTConfig.xml */ APL_PT_NO_PTREADERS = 58, /**< */ APL_PT_WRONG_PTCONFIG_VERSION = 59, /**< Chybna verzia PTConfig.xml */ APL_PT_NO_PCSC_DRIVER = 60, /**< Nebol vytvoreny PCSC driver */ APL_PT_NOCARD_ERR = 61, /**< Ziadna karta nie je v operacnom poli anteny */ APL_PT_AUTH_ERR = 62, /**< Authentication error, pravdepodobne chybny kluc, alebo nespravne cislo autentifikovaneho sektora. */ APL_PT_SECTOR_ERR = 63, /**< Chybne cislo sektoru */ APL_PT_INC_DEC_FAILED = 64, /**< Nepodarilo zmenit hodnotu penazenky */ APL_PT_SMALL_BUFFER = 65, /**< */ APL_PT_INVALID_PTR = 66, /**< */ APL_PT_OPEN_NEW_READER_ERROR = 67, /**< */ APL_PT_CARD_READER_NO_PLUGIN = 68, /**< Nepodarilo sa najst pluging pre dany nazov readera */ APL_PT_CARD_READER_INIT_ERR = 69, /**< */ APL_PT_UNKNOWN_SAM_AID = 70, /**< */ APL_PT_APL_NOT_IN_DIR = 71, /**< Aplikacia nebola najdena v adresari karty */ APL_PT_SAM_READY = 72, /**< Bol zaregistrovany sam v citacke */ APL_PT_SAM_OUT = 73, /**< Sam modul bol vytiahnuty */ APL_PT_BAD_KEY_TYPE = 74, /**< Chybny typ klucov */ APL_PT_LOAD_KEY_ERROR = 75, /**< Chyba pri prehravani klucov */ APL_PT_NO_KEY_SET = 76, /**< Neexistuje ziadna sada klucov */ APL_PT_DES_APP_NOT_SELECTED = 77, /**< Nepodarilo sa selektnut aplikaciu */ APL_PT_WRITE_IMPOSSIBLE = 78, /**< Zapis nie je mozny */ APL_PT_DRIVER_ERR = 79, /**< Chyba mifare drivera, pravdepodobne nie je zavedeny */ APL_PT_OPEN_READER_ERROR = 80, /**< Chyba pri otvoreni */ APL_PT_DEVICE_READY = 81, /**< Citacku sa podarilo otvorit */ APL_PT_EMADDR_JEDNOTA_ERROR = 82, /**< Citanie zapis nie je povoleny */ APL_PT_EMADDR_PURSE_ERROR = 83, /**< Chybne nastavena penazenka v emtest adresari */ APL_PT_EMADDR_IMMP_ERROR = 84, /**< Stare karty, zly adresar (IMMP) */ APL_PT_EMADDR_ALPHAA_ERROR = 85, /**< Chybne pismenko A na pozicii 6. v emtest adresari */ APL_PT_EMADDR_TT_ERROR = 86, /**< Chybne poznaceny casovy listok */ APL_EM_MAD1_CRC_ERROR = 87, /**< Chybna crc MAD1 sektoru */ APL_EM_MAD2_CRC_ERROR = 88, /**< Chybna crc MAD2 sektoru */ APL_PT_UNKNOWN_CARD = 89, /**< Neznama karta */ APL_PT_CARD_SIMUL_ERR_NO_DATA = 90, /**< */ APL_PT_CARD_SIMUL_ERR_UNKNOWN_CMD = 91, /**< */ APL_PT_CARD_SIMUL_TCPINIT_RCV_ERR = 92, /**< */ APL_PT_CARD_SIMUL_TCP_RCV_ERR = 93, /**< */ APL_PT_NO_CARD_DRIVER = 94, /**< Nebol vytvoreny driver karty */ APL_PT_BAD_INDEX_ERROR = 95, /**< index mesacnika nesuhlasi s poradim */ APL_PT_SAM_SIGN_ERROR = 96, /**< */ APL_PT_ICOM_TARIFA_NOT_FOUND = 97, /**< */ APL_PT_MIX_HWSAM_SWSAM = 98, /**< */ APL_PT_INITIALIZATION_ERROR = 99, /**< */ APL_PT_CARD_IN = 100, /**< Karta prilozena */ APL_PT_CARD_OUT = 101, /**< Karta odobrata */ APL_PT_SAM_INITIALIZATED = 102, /**< Sam modul bol inicializovany */ APL_PT_BOOTING_DEVICE = 103, /**< Citacka bola vypnuta a teraz bootuje */ APL_PT_COMM_ERR = 104, /**< Komunikacna chyba medzi kartou a antenou */ APL_PT_ACGHF_DUAL_READER_NO_SAM = 105, /**< */ APL_PT_READ_BACKUP_FAILED = 106, /**< Nepodarilo sa vycitat 16backup block */ APL_PT_RESTORE_HARD_FAILED = 107, /**< Nepodarilo sa opravit penazenku */ APL_PT_PURSE_NOT_VALID = 108, /**< Penazenka nieje platna */ APL_PT_SIGNATURE_ERROR = 109, /**< Penazenka nie je v liste alebo je chybna */ APL_PT_TT_NOT_IN_LIST = 110, /**< Chyba mesacnik nie je v liste alebo je chybny */ APL_PT_CHECK_ERR = 111, /**< Nepodarilo sa vycitat penazenku */ APL_PT_FARE_DIR_NOT_VALID = 112, /**< */ APL_PT_FARE_DIR_ITHEM_NOT_FOUND_ASSIGED = 113, /**< */ APL_PT_FARE_DIR_ITHEM_NOT_FOUND = 114, /**< */ APL_APDU_INSTRUCTION_NOT_SUPPORTED = 115, /**< Instruction of APDU command not supported - SW1= 0x6D SW2= 0x00 */ APL_NO_PCSC_DRIVER_PLUGIN = 116, /**< PCSC driver plugin not loaded and not addedt to plugin reader collection */ APL_SUPERPURSE_CONTAINER_NOT_FOUND = 117, /**< */ APL_CARDUSER_REQUEST_NOT_FOUND = 118, /**< Card data for specific card user not found in received request */ APL_PT_CARD_SIMUL_ERR_EXIT = 119, /**< */ APL_REMOTE_DRIVER_WRITE_ERROR = 120, /**< */ APL_CHECK_CARD_ERROR = 121, /**< */ APL_REMOTE_DRIVER_UNSUPORTED_FW = 122, /**< Unsuported UL FW 211 and older - from 26.8.2013 */ APL_PT_EMADDR_IS_EMPTY = 123, /**< */ APL_UNKNOWN_FILE_DRIVER = 124, /**< */ APL_FILEDRIVER_OPEN_ERROR = 125, /**< Error open image card file */ APL_ERROR_CREATE_DESFIRE_IMAGE = 126, /** */ APL_READ_FSETT_CACHE_FROM_FILE_ERROR = 127, /** */ APL_ERROR_CHANGE_STUDENT_STRUCT = 128, /** Change student card struct version to V5 failed */ APL_SAM_ECDSA_SIGN_ERROR = 129, /** Student data ECDSA signing by SAM failed */ APL_WRITE_INVALID_STUDENT_STRUCT_VERSION = 130, /** */ APL_SAM_COMMUNICATE_ERROR = 131, /** Sending apdu to SAM module failed(transmit error from SAM) */ APL_DES_AUTH_SAM_SW_ERROR = 132, /** SAM returns an SW error during the authentification with desfire card */ APL_WRITE_NOT_COMPLETED = 133, /** This returns when some mapper added to write has not finished step */ APL_INVALID_REQUEST_TYPE = 134, /** Return when invalid request type received */ APL_REMOTE_DRIVER_NO_ANSWER = 135, /** No answer in write response from ul driver */ APL_REMOTE_DRIVER_NO_ANSWER_DATA = 136, /** No answer data in write response from ul driver */ APL_SERVICE_LOCKED = 137, /** Smart Card Service locked, reserved for certain client */ APL_INVALID_TIME_FORMAT = 138, /** If input invalid time format */ APL_INVALID_LENGTH = 139, /** If invalid length */ APL_TAG_NOT_EXIST = 140, /** Data with certain tag not exist */ APL_RECEIVER_NOT_CREATED = 141, /** If Client Receiver wasn't created */ APL_ERROR_GET_KEY_SETTINGS = 142, /** Error GetKeySettings from Mifare Desfire card */ APL_SERVICE_UNLOCKED = 143, /** Smart Card Service unlocked, connected clients can send requests */ APL_REQEST_RESPONSE_LOCK_TYPE_MISMATCH = 144, /** Answer data collection lock type does't match with request data collection lock type. */ APL_BREAK_WRITE_REQUEST_SUCCESS = 145, /** BreakWriteRequest received and executed successfully */ APL_BREAK_WRITE_REQUEST_FAILED = 146, /** BreakWriteRequest received and execution failed */ APL_BREAK_WRITE_REQUEST_NOT_IN_WRITE = 147, /** SmartCardSystem isn't in write process */ APL_WAITING_FOR_CARD_FAILED = 148, /** Waiting for card approaching failed */ APL_ERROR_CREATE_DES_APPLICATION = 149, /** Error create application on Mifare Desfire card */ APL_ERROR_CREATE_DES_FILE = 150, /** Error create file on Mifare Desfire card */ APL_ERROR_CHANGE_DES_KEY = 151, /** Error change key on Mifare Desfire card */ APL_ERROR_CHANGE_DES_KEY_SETTINGS = 152, /** Error change key settings on Mifare Desfire card */ APL_ERROR_DES_FORMAT_PICC = 153, /** Error format PICC on Mifare Desfire card */ APL_ERROR_DELETE_DES_FILE = 154, /** Error delete file on Mifare Desfire card */ APL_ERROR_DELETE_DES_APPLICATION = 155, /** Error delete application on Mifare Desfire card */ APL_SAM_UPDATE_FAILED = 156, /** Sam Update Execution failed */ APL_SAM_UPDATE_NOT_NEEDED = 157, /** Sam Update not needed */ APL_SAM_UPDATE_IS_NECESSARY = 158, /** Sam Update is necessary */ APL_SAM_UPDATE_SAM_NOT_REGISTERED = 159, /** Sam Number not registered for update */ // PCSC error codes allocated up to 512 APL_PCSC_METHOD_ERROR = 201, /**< PC SC base method returned error */ APL_PCSC_SW_ERROR = 202, /**< APDU command error */ APL_PCSC_MORE_DATA = 203, /**< there are more data in buffer */ APL_PCSC_AUTH_ERROR = 204, /**< Desfire Error Code 0x91,0xAE - Authentication error */ APL_PCSC_OPEN_READER_ERROR = 205, /**< oper reader error */ APL_PCSC_THREAD_NOT_STARTED = 206, /**< thread not started */ //APL_PCSC_OTHER_CARD = 207, /** Duplication with APL_ERROR_OTHER_CARD = 6 */ APL_PCSC_CARD_REMOVED = 208, APL_PCSC_SW_SAM_READ_K_ERR = 209, APL_PCSC_NO_NID = 210, APL_PCSC_INVALID_NID = 211, APL_PCSC_NO_INIT = 212, APL_PCSC_CARD_NATIVE_APDU = 213, /**< APDU which is sent directly to the card - APDU starting with the class 0xFF are precesed by reader */ APL_PCSC_MF_STANDARD_MISSING_LOAD_KEY = 214, APL_PCSC_CONNECT_FAILED = 215, /**< SCardConnect error */ APL_PCSC_UNKNOWN_SCARD_PROTOCOL = 216, APL_PCSC_NOT_IMPLEMENTED = 217, APL_PCSC_APDU_INSTRUCTION_NOT_SUPPORTED = 218, /**< When SW error 6D 00 occured, SmartCardService returns this error */ APL_PCSC_INVALID_PREFIX = 219, APL_PCSC_INVALID_LENGTH = 220, APL_PCSC_NO_SELECTED_EF = 221, /**< When SW error 69 85 occured, SmartCardService returns this error */ APL_PCSC_SECRET_CODE_LOCKED = 222, /**< When SW error 69 83 occured, SmartCardService returns this error */ APL_PCSC_WRONG_AUTH_COUNTER_PROVIDED = 223, /**< When SW error 63 CX occured, SmartCardService returns this error */ APL_HSM_SAM_MISSING_IP = 224, /**< HSM SAM - Missing IP in configuration string */ APL_HSM_SAM_CONNECTION_FAILED = 225, APL_HSM_RESP_WRONG_MAC = 226, APL_ERR_NO_SPACE_IN_BUFFER = 227, APL_ERR_INCORRECT_APDU_APPLICATION = 228, /**< When SW error 6E 00 occured, SmartCardService returns this error */ APL_PCSC_RECORD_NOT_FOUND = 229, /**< When SW error 6A 83 occured, SmartCardService returns this error */ APL_PCSC_COMMAND_NOT_SUPPORTED = 230, /**< When SW error 6A 81 occured, SmartCardService returns this error */ APL_PCSC_SHARING_VIOLATION = 231, APL_PCSC_FILE_NOT_FOUND = 232, // SW Desfire Errors (256 - 512) APL_PCSC_DES_NO_CHANGES_DONE = 268, /**< (0x10C) Desfire Error Code 0x91,0x0C - No changes done to backup files, CommitTransaction / AbortTransaction not necessary */ APL_PCSC_DES_OUT_OF_EEPROM = 270, /**< (0x10E) Desfire Error Code 0x91,0x0E - Insufficient NV-Memory to complete command */ APL_PCSC_DES_ILLEGAL_COMMAND_CODE = 284, /**< (0x11C) Desfire Error Code 0x91,0x1C - Command code not supported */ APL_PCSC_DES_INTEGRITY_ERROR = 286, /**< (0x11E) Desfire Error Code 0x91,0x1E - CRC or MAC does not match data Padding bytes not valid */ APL_PCSC_DES_NO_SUCH_KEY = 320, /**< (0x140) Desfire Error Code 0x91,0x40 - Invalid key number specified */ APL_PCSC_DES_LENGTH_ERROR = 382, /**< (0x17E) Desfire Error Code 0x91,0x7E - Length of command string invalid */ APL_PCSC_DES_PERMISSION_DENIED = 413, /**< (0x19D) Desfire Error Code 0x91,0x9D - Current configuration / status does not allow the requested command */ APL_PCSC_DES_PARAMETER_ERROR = 414, /**< (0x19E) Desfire Error Code 0x91,0x9E - Value of the parameter(s) invalid */ APL_PCSC_DES_APPLICATION_NOT_FOUND = 416, /**< (0x1A0) Desfire Error Code 0x91,0xA0 - Requested AID not present on PICC */ APL_PCSC_DES_APPL_INTEGRITY_ERROR = 417, /**< (0x1A1) Desfire Error Code 0x91,0xA1 - Unrecoverable error within application, application will be disabled */ APL_PCSC_DES_BOUNDARY_ERROR = 446, /**< (0x1BE) Desfire Error Code 0x91,0xBE - Attempt to read/write data from/to beyond the file's/record's limits. Attempt to exceed the limits of a value file */ APL_PCSC_DES_PICC_INTEGRITY_ERROR = 449, /**< (0x1C1) Desfire Error Code 0x91,0xC1 - Unrecoverable error within PICC, PICC will be disabled */ APL_PCSC_DES_COMMAND_ABORTED = 458, /**< (0x1CA) Desfire Error Code 0x91,0xCA - Previous Command was not fully completed Not all Frames were requested or provided by the PCD */ APL_PCSC_DES_PICC_DISABLED_ERROR = 461, /**< (0x1CD) Desfire Error Code 0x91,0xCD - PICC was disabled by an unrecoverable error */ APL_PCSC_DES_COUNT_ERROR = 462, /**< (0x1CE) Desfire Error Code 0x91,0xCE - Number of Applications limited to 28, no additional CreateApplication possible */ APL_PCSC_DES_DUPLICATE_ERROR = 478, /**< (0x1DE) Desfire Error Code 0x91,0xDE - Creation of file/application failed because file/application with same number already exists */ APL_PCSC_DES_EEPROM_ERROR = 494, /**< (0x1EE) Desfire Error Code 0x91,0xEE - Could not complete NV-write operation due to loss of power, internal backup/rollback mechanism activate */ APL_PCSC_DES_FILE_NOT_FOUND = 496, /**< (0x1F0) Desfire Error Code 0x91,0xFO - Specified file number does not exist */ APL_PCSC_DES_FILE_INTEGRITY_ERROR = 497, /**< (0x1F1) Desfire Error Code 0x91,0xF1 - Unrecoverable error within file, file will be disabled */ // SW Desfire codes allocated up to 512 // up to 0x10000000 general errors APL_XT_SAM_ERROR_MASK = 0x10000000