It's our great honour to announce the Industry’s First VHBR CCID reader - VHBR Dual interface smart card reader vR504. It is able to support the world’s fastest ePassports.

To celebrate the new product release, there is Special Discount for New Registered Members in our store.
- Get $20.00 OFF instantly for smart card reader vR504, R502 and bR301

Come to get the readers now!

SCP of my smart card

Card Products

Moderator: horse dream

Jsine
Posts: 9
Joined: Mon Mar 14, 2016 5:12 am
Points: 92
Contact:

SCP of my smart card

Postby 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: 141
Contact:

Re: SCP of my smart card

Postby 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: 9
Joined: Mon Mar 14, 2016 5:12 am
Points: 92
Contact:

Re: SCP of my smart card

Postby 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: 141
Contact:

Re: SCP of my smart card

Postby 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: 312
Contact:

Re: SCP of my smart card

Postby 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: 2995
Contact:

Re: SCP of my smart card

Postby 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: 2995
Contact:

Re: SCP of my smart card

Postby 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: 312
Contact:

Re: SCP of my smart card

Postby 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: 2995
Contact:

Re: SCP of my smart card

Postby UNKNwYSHSA » Fri Nov 18, 2016 11:48 pm

:D
sense and simplicity


Return to “Card Products”

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer