ietf-openpgp
[Top] [All Lists]

Re: Problems with calculating signatures over keys

2005-05-31 09:41:03

I sent Kimmo private mail from on the road showing a problem:

Thanks for the clarification, but I still can't get the right resuts. I 
tried to calculate like this:

SHA1(0x99 (public key tag)+ 0x01 + 0xA2 (key length) + Key packet (418 
bytes) + 0xB4 (user id tag) + 0x00 + 0x00 + 0x00 + 0x28 (user id length) + 
User Id packet (40 bytes) + 0x04 + 0x13 + 0x11 + 0x02 + 0x00 + 0x1E + 0x05 + 
0x02 + 0x42 + 0x95 + 0x6E + 0xD1 + 0x02 + 0x1B + 0x03 + 0x06 + 0x0B + 0x09 + 
0x08 + 0x07 + 0x03 + 0x02 + 0x03 + 0x15 + 0x02 + 0x03 + 0x03 + 0x16 + 0x02 + 
0x01 + 0x02 + 0x1E + 0x01 + 0x02 + 0x17 + 0x80 + Trailer: 0x04 + 0xFF + 0x24 
(big endian length of hashed data from the sign. packet) + 0x00 + 0x00 + 
0x00)

The last four bytes should be 00 00 00 24 not 24 00 00 00.  It is supposed
to be the length of hashed data from the signature packet, which is hex
24, in four octet big-endian form.  He sent back that this fixed the
problem.

I do like the idea of an "implementation examples" document but I am not
sure I am the right person to do it, due to time demands.  I'll talk to
the management at work and see if this is something that I or someone
else could get some time to prepare in the next few weeks or months.

Hal Finney


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