Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6359908

(jsr268) transmit does not work in T=1 mode

XMLWordPrintable

      Transmitting APDUs in T=1 mode does not work because the native code always initializes a data structure for T=0. This leads to exceptions like the following:

      javax.smartcardio.CardException: sun.security.smartcardio.PCSCException: Unknown error 0x16
          at sun.security.smartcardio.ChannelImpl.transmit(ChannelImpl.java:78)
          at ApduTest.main(ApduTest.java:51)
      Caused by: sun.security.smartcardio.PCSCException: Unknown error 0x16
          at sun.security.smartcardio.PCSC.SCardTransmit(Native Method)
          at sun.security.smartcardio.ChannelImpl.transmit(ChannelImpl.java:73)
          ... 1 more

      This is on Windows. I did not have a chance to test Solaris/Linux yet, but most likely it will not work either. This was not caught earlier because our test cards only support T=0.

            andreas Andreas Sterbenz
            andreas Andreas Sterbenz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: