APDU Get Data why P1=80 or 00 curious

71 views
Skip to first unread message

richard redpath

unread,
Nov 4, 2024, 6:18:41 AMNov 4
to FIDO Dev (fido-dev)
So why the 80 and 00 for P1 work fine?
An example APDU for Get Info

P1= 0x80
Get Info APDU
   801080000104

Get Info APDU
   801000000104
P1= 0x00

Both work perfectly fine but why the P1=80 or P1=00
The raw request message is framed as a command APDU:
    CLA INS P1 P2 LC1 LC2 LC3

80 or 00 can be used. Which is actually correct Both?

Curious to know

DUBOUCHER Thomas

unread,
Nov 4, 2024, 9:07:21 AMNov 4
to richard redpath, FIDO Dev (fido-dev)

THALES GROUP LIMITED DISTRIBUTION to email recipients

 

I don’t know which security key you are using.

 

According to CTAP 2.1, 11.3.5.1., P1 and P2 SHALL be 0x00.

 

In your case, with P1 0x80, your security key should answer with an error. According to ISO 7816-4:2023, it should be 0x6A86.

 

Best regards,

 

 

 

 

Thomas Duboucher (he/him)

Embedded Security Specialist

Digital Identity and Security

Thales

 

--
You received this message because you are subscribed to the Google Groups "FIDO Dev (fido-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fido-dev+u...@fidoalliance.org.
To view this discussion visit https://groups.google.com/a/fidoalliance.org/d/msgid/fido-dev/a1989647-e646-4e86-846e-8969a8b7f51en%40fidoalliance.org.

Reply all
Reply to author
Forward
0 new messages