StatusWord codes as returned by BasicCard, card reader or library.
Namespace: BasicCardAssembly: BasicCard (in BasicCard.dll) Version: 2.5.2.0 (2.5.2.0)
Syntax
C# |
---|
[CLSCompliantAttribute(true)] public enum StatusWord |
Visual Basic |
---|
<CLSCompliantAttribute(true)> Public Enumeration StatusWord |
Visual C++ |
---|
[CLSCompliantAttribute(true)] public enum class StatusWord |
F# |
---|
[<CLSCompliantAttribute(true)>] type StatusWord |
Members
Member name | Value | Description | |
---|---|---|---|
swCommandOK | 36864 | 9000h: Command successfully completed. | |
swRetriesRemaining | 25536 | 63CXh: A command was wrongly encrypted, and the error counter for the active key has been decremented to X. If X reaches zero, the key is disabled. | |
swEepromWriteError | 25985 | 6581h: A write to EEPROM failed. (This is a hardware error.) | |
swBadEepromHeap | 25986 | 6582h: The EEPROM heap is in an inconsistent state. | |
swBadFileChain | 25987 | 6583h: The BasicCard file system is in an inconsistent state. | |
swKeyNotFound | 26129 | 6611h: The key specified in a START ENCRYPTION> command was not configured with a Declare Key statement in the BasicCard program. | |
swPolyNotFound | 26130 | 6612h: The SG-LFSR algorithm was specified in a START ENCRYPTION command, but primitive polynomials were not configured with a Declare Polynomials statement in the BasicCard program. | |
swKeyTooShort | 26131 | 6613h: The cryptographic key specified in a START ENCRYPTION command was to short for the algorithm specified. | |
swKeyDisabled | 26132 | 6614h: The active key has been disabled, either explicitly with a Disable Key statement, or automatically when its error counter reached zero. | |
swUnknownAlgorithm | 26133 | 6615h: Parameter P1 in a START ENCRYPTION command does not specify a valid algorithm. | |
swAlreadyEncrypting | 26304 | 66C0h: A START ENCRYPTION command was received while encryption was not active. | |
swNotEncrypting | 26305 | 66C1h: An END ENCRYPTION command was received while encryption was not active. | |
swBadCommandCRC | 26306 | 66C2h: The active encryption algorithm has detected an invalid CRC within a command. | |
swDesCheckError | 26307 | 66C3h: The active encryption algorithm is Single DES or Triple DES, and the authentication bytes in a command were invalid. | |
swCoprocessorError | 26308 | 66C4h: The Crypto-Coprocessor has reported an internal error. | |
swAesCheckError | 26309 | 66C5h: The active encryption algorithm is AES, and the authentication bytes in a command were invalid. | |
swBadSignature | 26310 | 66C6h: An AUTHENTICATE FILE command contained an invalid signature. | |
swBadAuthenticate | 26311 | 66C7h: Invalid VERIFY or EXTERNAL AUTHENTICATE command. | |
swLcLeError | 26368 | 6700h: Either Lc has an unexpected value; or Le is absent when it should be present, or present when it should be absent. | |
swCommandTooLong | 26497 | 6781h: A command will not fit in the command buffer. In most cards, this is 256 bytes; in Series 7 Professional BasicCards, it is 2048 bytes. | |
swResponseTooLong | 26498 | 6782h: The response from the card is too long to be sent. | |
swInvalidState | 27013 | 6985h: A built-in command was called, but the state of the BasicCard is invalid for the command. | |
swCardUnconfigured | 27014 | 6986h: The card has not been configured by ZeitControl. | |
swNewStateError | 27015 | 6987h: The state of the BasicCard has been changed with a SET STATE command. After a SET STATE command, the BasicCard must be reset before it will accept any furhter commands. | |
swP1P2Error | 27136 | 6A00h: P1 or P2 is invalid for the command. | |
swOutsideEeprom | 27138 | 6A02h: An invalid address was passed in P1P2 to one of the built-in EEPROM access commands. | |
swDataNotFound | 27272 | 6A88h: The built-in command GET APPLICATION ID returns this error code if no Application ID was configured in the BasicCard. | |
swINSNotFound | 27904 | 6D00h: The INS byte of the command was not recognised (although the CLA byte was valid). | |
swCLANotFound | 28160 | 6E00h: The CLA byte of the command was not recognised. | |
swInternalError | 28416 | 6F00h: An unexpected error condition was detected. | |
swNoCardReader | 26512 | 6790h: No card reader detected on the given COM port. | |
swCardReaderError | 26513 | 6791h: An invalid reply was received to a card reader command. | |
swNoCardInReader | 26514 | 6792h: No card is inserted in the card reader. | |
swCardPulled | 26515 | 6793h: The card has been removed from the card reader. | |
swT1Error | 26516 | 6794h: An unrecoverable T=1 protocol error occurred while communicating with the card. | |
swCardError | 26517 | 6795h: An invalid response was received to a BasicCard command. | |
swCardNotReset | 26518 | 6796h: The card has not been reset. A BasicCard must be reset before the Terminal program can send it any commands. | |
swKeyNotLoaded | 26519 | 6797h: The key specified in a START ENCRYPTION command is unknown to the Terminal program. | |
swCardTimedOut | 26522 | 679Ah: The card did not respond within the time allowed. | |
swTermOutOfMemory | 26523 | 679Bh: The Terminal program has insufficient free memory to process the response. | |
swBadDesResponse | 26524 | 679Ch: The active encryption algorithm is Single DES or Triple DES, and the authentication bytes in a response were invalid. | |
swNoPcscDriver | 26527 | 679Fh: No PC/SC driver is installed on the PC. | |
swPcscReaderBusy | 26528 | 67A0h: The PC/SC reader is busy. | |
swPcscError | 26529 | 67A1h: An unexpected PC/SC error occurred. | |
swComPortBusy | 26530 | 67A2h: Another process is using the COM port. | |
swBadATR | 26531 | 67A3h: The BasicCard returned an invalid ATR. | |
swT0Error | 26532 | 67A4h: A T=0 protocol error occurred. | |
swPTSError | 26535 | 67A7h: An error occurred during Protocol Type Selection. | |
swDataOverrun | 26536 | 67A8h: The Terminal has lost characters sent by the card reader. | |
swBadAesResponse | 26537 | 67A9h: The active encryption algorithm is AES, and the authentication bytes in a response were invalid. | |
swReservedINS | 28032 | 6D80h: An attempt was made to send a forbidden INS in T=0 protocol. | |
swReservedCLA | 28288 | 6E80h: An attempt was made to send CLA=FF in T=0 protocol. | |
swResponseTooShort | 26562 | 67C2h: Response apdu is to short for requested data. | |
swUnexpectedResponse | 26563 | 67C3h: Unexpected response received from card reader. | |
swAlreadyLocked | 26572 | 67CCh: An attempt to lock a card for exclusive use failed, because the card is already locked by this service. | |
swInvalidConnection | 26573 | 67CDh: The specified card connection is invalid for target service, e.g. because sharing requirements are not satisfied. | |
swReaderLocked | 26574 | 67CEh: The reader is locked by another (part of) software. | |
swNotSupported | 26575 | 67CFh: The desired operation is not supported by this software. | |
swBadComponentName | 27072 | 69C0h: A Component name contained an invalid character. | |
swComponentNotFound | 27073 | 69C1h: A Component was not found in the BasicCard. | |
swAccessDenied | 27074 | 69C2h: The required access conditions were not satisfied. | |
swComponentAlreadyExists | 27075 | 69C3h: A Component with the given name already exists. | |
swBadComponentChain | 27076 | 69C4h: The card’s internal Component chain has become corrupted. Contact ZeitControl for assistance. | |
swNameTooLong | 27077 | 69C5h: The full path name of the Component is longer than 254 characters. | |
swOutOfMemory | 27078 | 69C6h: The BasicCard has insufficient free memory to execute the command. | |
swInvalidACR | 27079 | 69C7h: An ACR has an unrecognised type. | |
swBadComponentType | 27080 | 69C8h: A Component is not of the required type. | |
swKeyUsage | 27085 | 69CDh: Current usage not enabled in Key’s Usage attribute. | |
swKeyAlgorithm | 27086 | 69CEh: Current algorithm not enabled in Key’s Algorithm attribute. | |
swTooManyTempFlags | 27088 | 69D0h: The limit of 64 temporary Flags has been reached. | |
swExecutableAcrDenied | 27089 | 69D1h: The Application file does not satisfy the Executable ACR. | |
swApplicationNotFound | 27090 | 69D2h: Application file not found. | |
swACRDepth | 27091 | 69D3h: Compound ACR’s can be nested to a limit of at most 5 levels. | |
swBadComponentAttr | 27092 | 69D4h: Attempt to write invalid Component Attributes. | |
swBadComponentData | 27093 | 69D5h: Attempt to write invalid Component Data. | |
swBadAppFile | 27094 | 69D6h: The file is not a valid Application file. | |
swLoadSequenceActive | 27095 | 69D7h: Attempt to activate LoadSequence or delete a Component when LoadSequence is already active. | |
swLoadSequenceNotActive | 27096 | 69D8h: Attempt to close or abort a non-existent LoadSequence. | |
swLoadSequencePhase | 27097 | 69D9h: Invalid Phase parameter to LoadSequence command. | |
swBadEaxTag | 27100 | 69DCh: Invalid EAX tag received during Secure Transport. | |
swSecureTransportActive | 27101 | 69DDh: Attempt to activate Secure Transport when already active. | |
swSecureTransportInactive | 27102 | 69DEh: Attempt to close non-existent Secure Transport session. | |
swComponentReferenced | 27103 | 69DFh: Attempt to delete a Component referenced by another Component. | |
swFileNotContiguous | 27104 | 69E0h: | |
swAppFileOpen | 27105 | 69E1h: | |
swPCodeError | 25600 | 6400h: PCode error | |
swPCodeErrorStackOverflow | 25601 | 6401h: PCode error stack overflow | |
swPCodeErrorDivideByZero | 25602 | 6402h: PCode error divide by zero | |
swPCodeErrorNotImplemented | 25603 | 6403h: PCode error not implemented | |
swPCodeErrorBadRamHeap | 25604 | 6404h: PCode error bad ram heap | |
swPCodeErrorBadEepromHeap | 25605 | 6405h: PCode error bad eeprom heap | |
swPCodeErrorReturnWithoutGoSub | 25606 | 6406h: PCode error return without GoSub | |
swPCodeErrorBadSubscript | 25607 | 6407h: PCode error bad subscript | |
swPCodeErrorBadBounds | 25608 | 6408h: PCode error bad bounds | |
swPCodeErrorInvalidReal | 25609 | 6409h: PCode error invalid real number | |
swPCodeErrorOverflow | 25610 | 640Ah: PCode error overflow | |
swPCodeErrorNegativeSqrt | 25611 | 640Bh: PCode error negative square root | |
swPCodeErrorDimensionError | 25612 | 640Ch: PCode error dimension error | |
swPCodeErrorBadStringCall | 25613 | 640Dh: PCode error bad string function call | |
swPCodeErrorOutOfMemory | 25614 | 640Eh: PCode error out of memory | |
swPCodeErrorArrayNotDynamic | 25615 | 640Fh: PCode error array is not dynamic | |
swPCodeErrorArrayTooBig | 25616 | 6410h: PCode error array too big | |
swPCodeErrorDeletedArray | 25617 | 6411h: PCode error deleted array | |
swPCodeErrorPCodeDisabled | 25618 | 6412h: PCode error PCode engine (VM) is disabled | |
swPCodeErrorBadSystemCall | 25619 | 6413h: PCode error bad system call | |
swPCodeErrorBadKey | 25620 | 6414h: PCode error bad key | |
swPCodeErrorBadLibraryCall | 25621 | 6415h: PCode error bad library call | |
swPCodeErrorStackUnderflow | 25622 | 6416h: PCode error stack underflow | |
swPCodeErrorInvalidAddress | 25623 | 6417h: PCoder error invalid address | |
swLeWarning | 24832 | SW1=61h is Le warning: SW2=XX Command succesxfully completed, but Le was not equal to XX. | |
swLaWarning | 27648 | SW1=6Ch is La warning: | |
swOther | -1 | Other error |