ietf-openpgp
[Top] [All Lists]

Re: version 3 header & USER ID packet

2000-10-30 11:22:18
Erron writes:
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.

If the CTB says there is a two byte length, there better be a two byte
length.  It doesn't matter what "File Formats used by PGP 2.x" says,
after all, this CTB may not have been created by PGP 2.x.

Was there in fact a two byte length in this userid packet?  I.e. did the
next two bytes look like a reasonable length field?  If so, just use them.
If not, then it's a bad keyring.

Hal

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