ds.ov2.util
Class Response_status

java.lang.Object
  extended by ds.ov2.util.Response_status

public class Response_status
extends Object

Response status words for the OV-ship project and the OV-chip protocol layer. I read somewhere that the status words 0x9xxx that are different from 0x9000 can be defined and used in application. I am not completely sure this is true, but until now it works for all the cards that I am using.

Static class containing constants only.

CPP Preprocessing
This class uses the following cpp defines: PACKAGE, PUBLIC
Execution Environment:
host
Author:
Hendrik Tews
Version:
$Revision: 1.10 $
Last Commit:
$Date: 2009-04-09 10:42:17 $ by $Author: tews $

Field Summary
static short OV_ASSERTION_00
          Assertion failure.
static short OV_BAD_HOST_DATA
          Bad host challenge.
static short OV_RSA_EXP_FAILURE
          RSA exponent initialization failed.
static short OV_RSA_KEY_FAILURE
          RSA public key creation failed.
static short OV_RSA_MOD_FAILURE
          RSA modulus initialization failed.
static short OV_RSA_NOPAD_CIPHER_FAILURE
          RSA NOPAD cipher initialization failed.
static short OV_TEST_FAILED_00
          Test failed in the test applet.
static short OV_UNEXPECTED_BATCH
          Wrong batch.
static short OV_UNEXPECTED_PROTOCOL_ID
          Wrong protocol.
static short OV_UNEXPECTED_PROTOCOL_STEP
          Wrong step.
static short OV_WRONG_RESPONSE_LENGTH
          Unexpected response length.
 
Constructor Summary
protected Response_status()
          Static class, object creation disabled.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OV_UNEXPECTED_PROTOCOL_ID

public static final short OV_UNEXPECTED_PROTOCOL_ID
Wrong protocol. An response status of OV_UNEXPECTED_PROTOCOL_ID (value 0x9101) indicates that the state of the applet does not permit the protocol identification (INS byte) that was contained in the command APDU.

See Also:
Constant Field Values

OV_UNEXPECTED_PROTOCOL_STEP

public static final short OV_UNEXPECTED_PROTOCOL_STEP
Wrong step. An response status of OV_UNEXPECTED_PROTOCOL_STEP (value 0x9102) indicates that the state of the applet does not permit an command the step number (P1 byte) that was contained in the command APDU.

See Also:
Constant Field Values

OV_UNEXPECTED_BATCH

public static final short OV_UNEXPECTED_BATCH
Wrong batch. An response status of OV_UNEXPECTED_BATCH (value 0x9103) indicates that the state of the applet does not permit the batch (P2 byte) that was contained in the command APDU.

See Also:
Constant Field Values

OV_WRONG_RESPONSE_LENGTH

public static final short OV_WRONG_RESPONSE_LENGTH
Unexpected response length. An response status of OV_WRONG_RESPONSE_LENGTH (value 0x9104) indicates that the applet has sent a different number of bytes than was expected by the host. This status is never send by the card. It is generated in Response_apdu.throw_if_not_ok for APDU without error but unexpected response length.

See Also:
Constant Field Values

OV_RSA_NOPAD_CIPHER_FAILURE

public static final short OV_RSA_NOPAD_CIPHER_FAILURE
RSA NOPAD cipher initialization failed. An response status of OV_RSA_NOPAD_CIPHER_FAILURE (value 0x9105) indicates that the factory method for creating the RSA NOPAD cipher failed. This typically indicates that the card does not implement this chipher.

See Also:
Constant Field Values

OV_RSA_KEY_FAILURE

public static final short OV_RSA_KEY_FAILURE
RSA public key creation failed. An response status of OV_RSA_KEY_FAILURE (value 0x9106) indicates that the creation of the RSA public key failed. This typically indicates that the requested key length is not supported by the card.

See Also:
Constant Field Values

OV_RSA_MOD_FAILURE

public static final short OV_RSA_MOD_FAILURE
RSA modulus initialization failed. An response status of OV_RSA_MOD_FAILURE (value 0x9107) indicates that setting the RSA modulus in the key failed. This typically happens if the length of the modulus does not match the key length.

See Also:
Constant Field Values

OV_RSA_EXP_FAILURE

public static final short OV_RSA_EXP_FAILURE
RSA exponent initialization failed. An response status of OV_RSA_EXP_FAILURE (value 0x9108) indicates that setting the exponent in the RSA key failed. This should only happen if the exponent length is wrong. However on the NXP cards that I have this exception is always thrown for certain key length. I interpred this as a late insight of the card that it does not support the requested key length.

See Also:
Constant Field Values

OV_BAD_HOST_DATA

public static final short OV_BAD_HOST_DATA
Bad host challenge. An response status of OV_BAD_HOST_DATA (value 0x9109) indicates that the data the host sent does not fullfill the conditions that are prescribed in the protocol.

See Also:
Constant Field Values

OV_TEST_FAILED_00

public static final short OV_TEST_FAILED_00
Test failed in the test applet. An response status of OV_TEST_FAILED_00 (value 0x9Exx) indicates that the test applet has detected an error. The less significant byte of this status is a tag that indicates which test failed. See the list of currently used OV_TEST_FAILED_00 tags.

See Also:
Constant Field Values

OV_ASSERTION_00

public static final short OV_ASSERTION_00
Assertion failure. An response status of OV_ASSERTION_00 (value 0x9Fxx) indicates that an assertion failed during applet execution. The less significant byte of this status equals the tag argument of ASSERT_TAG or Misc.myassert. For a failed ASSERT the argument is 0. See also the list of used assert tags.

See Also:
Constant Field Values
Constructor Detail

Response_status

protected Response_status()
Static class, object creation disabled.