--On Tuesday, October 16, 2007 02:17:39 AM +0200 Heribert Fassbinder 
<[EMAIL PROTECTED]> wrote:

> There must be a transformation of secret 1 and 2 to something different
> before using them.
>
> Is here anyone who has an idea? For example how other cards are doing it?

The values you have aren't secret. One is a random challenge. The other, 
assuming that what you gave us is the entire exchange, is probably an 
encrypted response to the challenge. The secret would be an additional 16 
bytes of 3des key (or more than one 3des key, depending on the complexity 
of the secure messaging mechanism)

Although the tlv in your sample command appears to match 7816-4 (i.e, tag 
0x87 matches a padding indicator and ciphertext, 0x8E matches a 
cryptographic checksum) , the INS=86 apdu does not seem to be standardized, 
so I don't really know how it operates. 
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to