[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensc-commits
Subject:    [Opensc-commits] [OpenSC/OpenSC] fcd2e6: IASECC/CPX: fix APDU errors for SE get data
From:       Vincent JARDIN via Opensc-commits <opensc-commits () lists ! sourceforge ! net>
Date:       2021-04-26 13:55:39
Message-ID: OpenSC/OpenSC/push/refs/heads/master/405ecf-e3a372 () github ! com
[Download RAW message or body]

  Branch: refs/heads/master
  Home:   https://github.com/OpenSC/OpenSC
  Commit: fcd2e665fedf38ee633ff67ea7a3e3d24c6d96f4
      https://github.com/OpenSC/OpenSC/commit/fcd2e665fedf38ee633ff67ea7a3e3d24c6d96f4
  Author: Vincent JARDIN <vjardin@free.fr>
  Date:   2021-04-26 (Mon, 26 Apr 2021)

  Changed paths:
    M src/libopensc/card-iasecc.c

  Log Message:
  -----------
  IASECC/CPX: fix APDU errors for SE get data

On a CPX, this object needs to be read from 3F00.

For instance:

$ opensc-explorer -r 2

OpenSC [3F00]> cd 0002
OpenSC [3F00/0002]> apdu 00 CB 3F FF 0A 4D 08 70 06 BF FB 05 02 7B 80
Sending: 00 CB 3F FF 0A 4D 08 70 06 BF FB 05 02 7B 80
Received (SW1=0x6A, SW2=0x88)
Failure: Data object not found

OpenSC [3F00/0002]> apdu 00 A4 09 04 02 3F 00
Sending: 00 A4 09 04 02 3F 00
Received (SW1=0x90, SW2=0x00)
Success!

OpenSC [3F00/0002]> apdu 00 CB 3F FF 0A 4D 08 70 06 BF FB 05 02 7B 80
Sending: 00 CB 3F FF 0A 4D 08 70 06 BF FB 05 02 7B 80
Received (SW1=0x90, SW2=0x00)
Success!

Currently, this patch limits to the CPX cards since I cannot know
the behaviour for the other cards. I could not find any reference
from the standard.

Fix: issue #2275


  Commit: e3a3722ad138cd8a33ebdfd3bd2b98ef4ae14d09
      https://github.com/OpenSC/OpenSC/commit/e3a3722ad138cd8a33ebdfd3bd2b98ef4ae14d09
  Author: Vincent JARDIN <vjardin@free.fr>
  Date:   2021-04-26 (Mon, 26 Apr 2021)

  Changed paths:
    M src/libopensc/card-iasecc.c

  Log Message:
  -----------
  IASECC/CPX: Fix SDO path

Some objects need to be read from a specific path.

IASECC_SDO_PRVKEY_TAG: from 3F00:0001
IASECC_SDO_CHV_TAG: from 3F00


Compare: https://github.com/OpenSC/OpenSC/compare/405ecfc40275...e3a3722ad138


_______________________________________________
Opensc-commits mailing list
Opensc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensc-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic