[PATCH GnuPG 2/2] scd:p15: Add support for D-Trust Card 4.1/4.4

Mario Haustein mario.haustein at hrz.tu-chemnitz.de
Wed Nov 29 21:27:17 CET 2023


Am Mittwoch, 29. November 2023, 20:39:33 CET schrieb Werner Koch:
> Hi!

Hello,

> your patches look good.

thanks for reviewing the patches so quickly.

> > @@ -3500,7 +3507,7 @@ read_ef_tokeninfo (app_t app)
> > 
> >        ul |= (*p++) & 0xff;
> >        n--;
> >      
> >      }
> > 
> > -  if (ul)
> > +  if (ul > 1)
> > 
> >      {
> >      
> >        log_error ("p15: invalid version %lu in TokenInfo\n", ul);
> 
> Do you have any reference/spec for that version 1 TokenInfo?

It's specified as a fixed value in the docs provided by the vendor. In my 
understanding a value of 1 means the data is compliant to ISO/IEC 7816-15:2016 
which replaces PKCS#15. A value of 0 means the data is compliant to PKCS#15 
(or at least older editions of ISO/IEC 7816-15). But the content is 
effectively the same.

Kind regards
-- 
Mario Haustein
Facharbeitsgruppe Anwendungen
Universitätsrechenzentrum

Technische Universität Chemnitz
Straße der Nationen 62 | R. 1/B303 (neu: A11.303)
09111 Chemnitz
Germany

Tel:    +49 371 531-36606
Fax:    +49 371 531-836606

mario.haustein at hrz.tu-chemnitz.de
www.tu-chemnitz.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20231129/a78c48ba/attachment.sig>


More information about the Gnupg-devel mailing list