StatusWord codes as returned by BasicCard, card reader or library.

Namespace: BasicCard
Assembly: 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 nameValueDescription
swCommandOK36864 9000h: Command successfully completed.
swRetriesRemaining25536 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.
swEepromWriteError25985 6581h: A write to EEPROM failed. (This is a hardware error.)
swBadEepromHeap25986 6582h: The EEPROM heap is in an inconsistent state.
swBadFileChain25987 6583h: The BasicCard file system is in an inconsistent state.
swKeyNotFound26129 6611h: The key specified in a START ENCRYPTION> command was not configured with a Declare Key statement in the BasicCard program.
swPolyNotFound26130 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.
swKeyTooShort26131 6613h: The cryptographic key specified in a START ENCRYPTION command was to short for the algorithm specified.
swKeyDisabled26132 6614h: The active key has been disabled, either explicitly with a Disable Key statement, or automatically when its error counter reached zero.
swUnknownAlgorithm26133 6615h: Parameter P1 in a START ENCRYPTION command does not specify a valid algorithm.
swAlreadyEncrypting26304 66C0h: A START ENCRYPTION command was received while encryption was not active.
swNotEncrypting26305 66C1h: An END ENCRYPTION command was received while encryption was not active.
swBadCommandCRC26306 66C2h: The active encryption algorithm has detected an invalid CRC within a command.
swDesCheckError26307 66C3h: The active encryption algorithm is Single DES or Triple DES, and the authentication bytes in a command were invalid.
swCoprocessorError26308 66C4h: The Crypto-Coprocessor has reported an internal error.
swAesCheckError26309 66C5h: The active encryption algorithm is AES, and the authentication bytes in a command were invalid.
swBadSignature26310 66C6h: An AUTHENTICATE FILE command contained an invalid signature.
swBadAuthenticate26311 66C7h: Invalid VERIFY or EXTERNAL AUTHENTICATE command.
swLcLeError26368 6700h: Either Lc has an unexpected value; or Le is absent when it should be present, or present when it should be absent.
swCommandTooLong26497 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.
swResponseTooLong26498 6782h: The response from the card is too long to be sent.
swInvalidState27013 6985h: A built-in command was called, but the state of the BasicCard is invalid for the command.
swCardUnconfigured27014 6986h: The card has not been configured by ZeitControl.
swNewStateError27015 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.
swP1P2Error27136 6A00h: P1 or P2 is invalid for the command.
swOutsideEeprom27138 6A02h: An invalid address was passed in P1P2 to one of the built-in EEPROM access commands.
swDataNotFound27272 6A88h: The built-in command GET APPLICATION ID returns this error code if no Application ID was configured in the BasicCard.
swINSNotFound27904 6D00h: The INS byte of the command was not recognised (although the CLA byte was valid).
swCLANotFound28160 6E00h: The CLA byte of the command was not recognised.
swInternalError28416 6F00h: An unexpected error condition was detected.
swNoCardReader26512 6790h: No card reader detected on the given COM port.
swCardReaderError26513 6791h: An invalid reply was received to a card reader command.
swNoCardInReader26514 6792h: No card is inserted in the card reader.
swCardPulled26515 6793h: The card has been removed from the card reader.
swT1Error26516 6794h: An unrecoverable T=1 protocol error occurred while communicating with the card.
swCardError26517 6795h: An invalid response was received to a BasicCard command.
swCardNotReset26518 6796h: The card has not been reset. A BasicCard must be reset before the Terminal program can send it any commands.
swKeyNotLoaded26519 6797h: The key specified in a START ENCRYPTION command is unknown to the Terminal program.
swCardTimedOut26522 679Ah: The card did not respond within the time allowed.
swTermOutOfMemory26523 679Bh: The Terminal program has insufficient free memory to process the response.
swBadDesResponse26524 679Ch: The active encryption algorithm is Single DES or Triple DES, and the authentication bytes in a response were invalid.
swNoPcscDriver26527 679Fh: No PC/SC driver is installed on the PC.
swPcscReaderBusy26528 67A0h: The PC/SC reader is busy.
swPcscError26529 67A1h: An unexpected PC/SC error occurred.
swComPortBusy26530 67A2h: Another process is using the COM port.
swBadATR26531 67A3h: The BasicCard returned an invalid ATR.
swT0Error26532 67A4h: A T=0 protocol error occurred.
swPTSError26535 67A7h: An error occurred during Protocol Type Selection.
swDataOverrun26536 67A8h: The Terminal has lost characters sent by the card reader.
swBadAesResponse26537 67A9h: The active encryption algorithm is AES, and the authentication bytes in a response were invalid.
swReservedINS28032 6D80h: An attempt was made to send a forbidden INS in T=0 protocol.
swReservedCLA28288 6E80h: An attempt was made to send CLA=FF in T=0 protocol.
swResponseTooShort26562 67C2h: Response apdu is to short for requested data.
swUnexpectedResponse26563 67C3h: Unexpected response received from card reader.
swAlreadyLocked26572 67CCh: An attempt to lock a card for exclusive use failed, because the card is already locked by this service.
swInvalidConnection26573 67CDh: The specified card connection is invalid for target service, e.g. because sharing requirements are not satisfied.
swReaderLocked26574 67CEh: The reader is locked by another (part of) software.
swNotSupported26575 67CFh: The desired operation is not supported by this software.
swBadComponentName27072 69C0h: A Component name contained an invalid character.
swComponentNotFound27073 69C1h: A Component was not found in the BasicCard.
swAccessDenied27074 69C2h: The required access conditions were not satisfied.
swComponentAlreadyExists27075 69C3h: A Component with the given name already exists.
swBadComponentChain27076 69C4h: The card’s internal Component chain has become corrupted. Contact ZeitControl for assistance.
swNameTooLong27077 69C5h: The full path name of the Component is longer than 254 characters.
swOutOfMemory27078 69C6h: The BasicCard has insufficient free memory to execute the command.
swInvalidACR27079 69C7h: An ACR has an unrecognised type.
swBadComponentType27080 69C8h: A Component is not of the required type.
swKeyUsage27085 69CDh: Current usage not enabled in Key’s Usage attribute.
swKeyAlgorithm27086 69CEh: Current algorithm not enabled in Key’s Algorithm attribute.
swTooManyTempFlags27088 69D0h: The limit of 64 temporary Flags has been reached.
swExecutableAcrDenied27089 69D1h: The Application file does not satisfy the Executable ACR.
swApplicationNotFound27090 69D2h: Application file not found.
swACRDepth27091 69D3h: Compound ACR’s can be nested to a limit of at most 5 levels.
swBadComponentAttr27092 69D4h: Attempt to write invalid Component Attributes.
swBadComponentData27093 69D5h: Attempt to write invalid Component Data.
swBadAppFile27094 69D6h: The file is not a valid Application file.
swLoadSequenceActive27095 69D7h: Attempt to activate LoadSequence or delete a Component when LoadSequence is already active.
swLoadSequenceNotActive27096 69D8h: Attempt to close or abort a non-existent LoadSequence.
swLoadSequencePhase27097 69D9h: Invalid Phase parameter to LoadSequence command.
swBadEaxTag27100 69DCh: Invalid EAX tag received during Secure Transport.
swSecureTransportActive27101 69DDh: Attempt to activate Secure Transport when already active.
swSecureTransportInactive27102 69DEh: Attempt to close non-existent Secure Transport session.
swComponentReferenced27103 69DFh: Attempt to delete a Component referenced by another Component.
swFileNotContiguous27104 69E0h:
swAppFileOpen27105 69E1h:
swPCodeError25600 6400h: PCode error
swPCodeErrorStackOverflow25601 6401h: PCode error stack overflow
swPCodeErrorDivideByZero25602 6402h: PCode error divide by zero
swPCodeErrorNotImplemented25603 6403h: PCode error not implemented
swPCodeErrorBadRamHeap25604 6404h: PCode error bad ram heap
swPCodeErrorBadEepromHeap25605 6405h: PCode error bad eeprom heap
swPCodeErrorReturnWithoutGoSub25606 6406h: PCode error return without GoSub
swPCodeErrorBadSubscript25607 6407h: PCode error bad subscript
swPCodeErrorBadBounds25608 6408h: PCode error bad bounds
swPCodeErrorInvalidReal25609 6409h: PCode error invalid real number
swPCodeErrorOverflow25610 640Ah: PCode error overflow
swPCodeErrorNegativeSqrt25611 640Bh: PCode error negative square root
swPCodeErrorDimensionError25612 640Ch: PCode error dimension error
swPCodeErrorBadStringCall25613 640Dh: PCode error bad string function call
swPCodeErrorOutOfMemory25614 640Eh: PCode error out of memory
swPCodeErrorArrayNotDynamic25615 640Fh: PCode error array is not dynamic
swPCodeErrorArrayTooBig25616 6410h: PCode error array too big
swPCodeErrorDeletedArray25617 6411h: PCode error deleted array
swPCodeErrorPCodeDisabled25618 6412h: PCode error PCode engine (VM) is disabled
swPCodeErrorBadSystemCall25619 6413h: PCode error bad system call
swPCodeErrorBadKey25620 6414h: PCode error bad key
swPCodeErrorBadLibraryCall25621 6415h: PCode error bad library call
swPCodeErrorStackUnderflow25622 6416h: PCode error stack underflow
swPCodeErrorInvalidAddress25623 6417h: PCoder error invalid address
swLeWarning24832

SW1=61h is Le warning:

SW2=XX

Command succesxfully completed, but Le was not equal to XX.

swLaWarning27648 SW1=6Ch is La warning:
swOther-1 Other error

See Also