[OTR-dev] Fingerprints?

alex323 alex323 at gmail.com
Wed Jan 19 15:50:04 EST 2005


Heh, I saw my mistake now. Fixed:

0x00123456 == 0x123456 == (len = 3) == 0x0003123456 == 0x3123456


Whoops! Thanks

Alex

Ian Goldberg wrote:

>On Wed, Jan 19, 2005 at 08:08:11AM -0500, alex323 wrote:
>  
>
>>"What the above is saying is that you need
>>to encode it as 00000003123456, not 0000000400123456 or any other
>>such thing."
>>
>>Why wouldn't it be encoded as 6123456?
>>
>>0x00123456 == 0x123456 == (len = 6) == 0x0006123456 == 0x6123456
>>
>>^^ Right? ^^
>>    
>>
>
>No.  The length of 0x123456 is 3 bytes: 0x12, 0x34, 0x56.
>
>*First* remove any leading 0x00 bytes from the MPI.
>*Next* find the resulting length of the (possibly shorter) MPI, in bytes.
>*Finally*, output the length (as a four-byte value), followed by that
>           many bytes of MPI data.
>
>The result will almost certainly have leading 0x00 bytes, but only in
>the length field, which is probably smaller than 0x01000000.
>
>   - Ian
>_______________________________________________
>OTR-dev mailing list
>OTR-dev at lists.cypherpunks.ca
>http://lists.cypherpunks.ca/mailman/listinfo/otr-dev
>
>  
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 825 bytes
Desc: OpenPGP digital signature
URL: <http://lists.cypherpunks.ca/pipermail/otr-dev/attachments/20050119/9a10cce1/attachment.pgp>


More information about the OTR-dev mailing list