ietf-openpgp
[Top] [All Lists]

version 3 header & USER ID packet

2000-10-30 01:40:45
To all,

We have been reading a public key-ring and have noticed that the CTB for the user id is:

10110101 that says:

10: Version 3 header
1101: User ID packet
01: 2 octet length

Now when I read the "File Formats Used by PGP 2.x", it says (under the User ID packet) that a User ID packet has a length of 1 octet.

From this, either two things have happened:

a) The program that wrote the key-ring has used a default "two byte" length identifier when a CTB is created and when the User ID CTB has been created it simply leaves this as the User ID always uses a 1 octet length identifier with a version 3 header (as "File Formats used by PGP 2.x" indicates).

b) The public key-ring is bad.

Now, if b) should be followed then OK, however if a) should be followed, is there any other packets that follow this peculiar line?

I though that when a version 3 CTB is created for a User ID, it should read 10110100, indicating a 1 octet length for the user ID, not 10110101???

TIA for the clarification...


Erron Criddle
Comasp Ltd.
Level 2, 45 Stirling Hwy
NEDLANDS  WA  6009
Australia

Fax: +61 8 9386 9473
Tel: + 61 8 9386 9534

http://www.comasp.com
ejc(_at_)comasp(_dot_)com












<Prev in Thread] Current Thread [Next in Thread>