Too long ATR

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Too long ATR

Frank Tamás
Hello,

sorry if it is a trivial question, but I cannot solve it.

I have a Schlumberger Cryptoflex 32K e-gate card, with ATR 3b:95:18:40:ff:62:01:02:01:04, but when I run opensc-tool --atr, I get a much longer answer, eg: 3b:95:18:40:ff:62:01:02:01:04:f4:b8:61:c0:26:9b:d1:88, and the last 8 byte is being randomly changed. I can use eg. pkcs15-tool, if I put this long ATR to /etc/opensc/opensc.conf, and set driver to flex. Do you have any idea, what I should confgure to make opensc to use only the regular, small ATR?

I tried on Wheezy and Ubuntu 14.04 with the same result, but it works fine on Squeeze with the same card.

Thanks.

Tamas

--
Frank, Tamas
NIIF Institute
Hungary



------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Opensc-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: Too long ATR

Andreas Schwier (ML)
Dear Tamas,

The card only indicates the first ATR, so the remaining bytes either
come from noise on card interface combined with a bad ATR parser in the
reader or some other bug in the reader firmware. Did you try a different
reader as well ?

You can determine the actual length of the ATR from the encoded data:

TS  : 3B  Direct logic
TO  : 95  K    =     5 byte [historical characters]
TA1 : 18  Fi/f =   372/ 5   [clock rate conversion factor / max.
frequency (MHz)]
          Di   =    12      [bit rate conversion factor]
TD1 : 40  T    =   T=0      [protocol type]
TC2 : FF  W    =   255      [waiting time adjustment factor]
6201020104 b....

So the last 5 historical characters are intentionally send by the card.

Andreas

On 09/04/2014 11:27 AM, Frank Tamás wrote:

> Hello,
>
> sorry if it is a trivial question, but I cannot solve it.
>
> I have a Schlumberger Cryptoflex 32K e-gate card, with ATR 3b:95:18:40:ff:62:01:02:01:04, but when I run opensc-tool --atr, I get a much longer answer, eg: 3b:95:18:40:ff:62:01:02:01:04:f4:b8:61:c0:26:9b:d1:88, and the last 8 byte is being randomly changed. I can use eg. pkcs15-tool, if I put this long ATR to /etc/opensc/opensc.conf, and set driver to flex. Do you have any idea, what I should confgure to make opensc to use only the regular, small ATR?
>
> I tried on Wheezy and Ubuntu 14.04 with the same result, but it works fine on Squeeze with the same card.
>
> Thanks.
>
> Tamas
>
> --
> Frank, Tamas
> NIIF Institute
> Hungary
>
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.  
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Opensc-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/opensc-devel
>


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Opensc-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opensc-devel