Home GnuPG
Diffusion GnuPG 8cad11d13b15

scd:piv: Improve APT parser compatibility.

Description

scd:piv: Improve APT parser compatibility.

* scd/app-piv.c (app_select_piv): Allow for full AID.

It appears that SP-800-73-x is not too clear about the format of these
objects. Many current cards (such as the Yubikey 5 series) apparently
have only the PIX in DO 0x4F and only the RID in object 0x79/0x4F.

However, other cards as well as the PivApplet Javacard applet have the
full AID in 0x4F (which actually seems closer to what the standard
says). PivApplet also has the full AID in 0x79/0x4F, but this is
probably incorrect. (Here is a long discussion of the matter from an
OpenSC author:
https://github.com/arekinath/PivApplet/issues/43#issuecomment-772649709)

[Taken from a mail to gnupg-devel date 2021-02-03.]

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
Valtteri Vuorikoski <vuori@notcom.org>Authored on Mar 11 2021, 2:06 PM
wernerCommitted on Mar 11 2021, 2:06 PM
Parents
rG6976a70270e3: doc: Add a sending patches section to HACKING.
Branches
Unknown
Tags
Unknown

Event Timeline