Closed lucanaef closed 3 years ago
I haven’t tried to decode the byte sequence you posted in its entirety, but I have a copy of the OpenPGP spec handy and it describes the length field of what it calls ‘TLV structures’ on page 39, section 4.4.4. 0x82 is the expected value indicating the next two bytes are a length up to 65535. I have read over the byte sequence and compared it to the spec up until the ‘Algorithm attributes signature’ and the data seems to make sense. Hope this helps.
Thanks! I misunderstood that part of the specification.
When requesting the Application Related Data DO of the YubiKeys OpenPGP applet via SmartCardInterface, I consistently get the following byte sequence (here represented in hexadecimal):
Trying to decode this information manually according to the Functional Specification of the OpenPGP application on ISO Smart Card Operating Systems yields the following result:
(sorry for the bad formatting)
I don't understand how both for length the total length of the Application Related Data (0x6e) and the length of the Discretionary data objects (0x73), I get 0x82 instead of - presumably - 0x02? Am I misunderstanding the encoding scheme?
I am happy to provide more information or context if needed :) Thanks!