Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

SCP of my smart card

Card Products

Moderator: horse dream

Jsine
Posts: 10
Joined: Mon Mar 14, 2016 5:12 am
Points :106
Contact:

SCP of my smart card

Post by Jsine » Sat Apr 16, 2016 3:58 am

How can I know which Secure channel protocol my smart card is using, 01,02 or 03?
Thanks~

wkuzma
Posts: 8
Joined: Wed Jan 20, 2016 10:50 pm
Points :145
Contact:

Re: SCP of my smart card

Post by wkuzma » Sat Apr 16, 2016 4:21 am

Jsine wrote:How can I know which Secure channel protocol my smart card is using, 01,02 or 03?
Thanks~


1. Select card Manager
2. Send the following APDU command
>> 80 CA 00 66

Jsine
Posts: 10
Joined: Mon Mar 14, 2016 5:12 am
Points :106
Contact:

Re: SCP of my smart card

Post by Jsine » Sat Apr 16, 2016 4:57 am

Thanks for your answer,My friend!
But how can I select Card manager ? Or shall I know the AID firstly?

wkuzma
Posts: 8
Joined: Wed Jan 20, 2016 10:50 pm
Points :145
Contact:

Re: SCP of my smart card

Post by wkuzma » Sat Apr 16, 2016 5:09 am

@Jsine

Send SELECT command W/O AID to select card manager
That is
00 A4 04 00 00

tieuhaoluong
Posts: 14
Joined: Mon Sep 19, 2016 12:28 am
Points :372
Contact:

Re: SCP of my smart card

Post by tieuhaoluong » Wed Nov 16, 2016 11:48 pm

I have sent APDU and receive:
<<80 CA 00 66
>>66 4C 73 4A 06 07 2A 86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B 02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 0B 06 09 2A 86 48 86 FC 6B 04 02 55 65 0B 06 09 2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 04 01 2A 02 6E 01 02 90 00

What does it mean?
Thanks!

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: SCP of my smart card

Post by UNKNwYSHSA » Thu Nov 17, 2016 5:22 am

I usually read the response data of command INITIALIZE UPDATE, for example:

Code: Select all

<<80 50 00 00 08 8A 34 E5 AF 41 76 DA 3E 1C
>>00 00 00 00 00 00 00 00 00 00 FF 02 00 03 B5 00 CF 85 24 1E C3 86 54 3B 8C 6C 43 EC 90 00

SCP is 0x02
response is struct as following:
SCP01: Key diversification data (10 bytes) + Key information (2 bytes, KVN + SCP identifier) + ...
SCP02: Key diversification data (10 bytes) + Key information (2 bytes, KVN + SCP identifier) + ...
SCP03: Key diversification data (10 bytes) + Key information (3 bytes, KVN + SCP identifier + SCPi) + ...
sense and simplicity

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: SCP of my smart card

Post by UNKNwYSHSA » Thu Nov 17, 2016 5:35 am

tieuhaoluong wrote:I have sent APDU and receive:
<<80 CA 00 66
>>66 4C 73 4A 06 07 2A 86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B 02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 0B 06 09 2A 86 48 86 FC 6B 04 02 55 65 0B 06 09 2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 04 01 2A 02 6E 01 02 90 00

What does it mean?
Thanks!

Code: Select all

66 4C
    73 4A
        06 07
            2A 86 48 86 FC 6B 01
        60 0C
            06 0A
                2A 86 48 86 FC 6B 02 02 01 01
        63 09
            06 07
                2A 86 48 86 FC 6B 03
         64 0B
            06 09
                2A 86 48 86 FC 6B 04 02 55
         65 0B
            06 09
                2B 85 10 86 48 64 02 01 03
         66 0C
            06 0A
                2B 06 01 04 01 2A 02 6E 01 02

'64' '06' contains SCP info: SCP02, i=55.
Refer to GlobalPlatform Card Specification 2.x.x - "Structure of Card Recognition Data"
sense and simplicity

tieuhaoluong
Posts: 14
Joined: Mon Sep 19, 2016 12:28 am
Points :372
Contact:

Re: SCP of my smart card

Post by tieuhaoluong » Fri Nov 18, 2016 5:33 am

UNKNwYSHSA wrote:
tieuhaoluong wrote:I have sent APDU and receive:
<<80 CA 00 66
>>66 4C 73 4A 06 07 2A 86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B 02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 0B 06 09 2A 86 48 86 FC 6B 04 02 55 65 0B 06 09 2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 04 01 2A 02 6E 01 02 90 00

What does it mean?
Thanks!

Code: Select all

66 4C
    73 4A
        06 07
            2A 86 48 86 FC 6B 01
        60 0C
            06 0A
                2A 86 48 86 FC 6B 02 02 01 01
        63 09
            06 07
                2A 86 48 86 FC 6B 03
         64 0B
            06 09
                2A 86 48 86 FC 6B 04 02 55
         65 0B
            06 09
                2B 85 10 86 48 64 02 01 03
         66 0C
            06 0A
                2B 06 01 04 01 2A 02 6E 01 02

'64' '06' contains SCP info: SCP02, i=55.
Refer to GlobalPlatform Card Specification 2.x.x - "Structure of Card Recognition Data"

Oh, thank you very much! :D

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: SCP of my smart card

Post by UNKNwYSHSA » Fri Nov 18, 2016 11:48 pm

:D
sense and simplicity

TripTar
Posts: 4
Joined: Tue Oct 30, 2018 8:31 pm
Points :36
Location: Niger
Contact:

SCP of my smart card

Post by TripTar » Mon Nov 19, 2018 4:56 pm

I have a cheap smart card reader for Windows but it needs some drivers to be used by applications.
Maybe inside there is an STM32?

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 37 guests

JavaCard OS : Disclaimer