[OTR-dev] Fingerprints?

alex323 alex323 at gmail.com
Wed Jan 19 08:08:11 EST 2005


"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? ^^

Regards,
Alex


Ian Goldberg wrote:

>On Tue, Jan 18, 2005 at 09:34:56PM -0500, alex323 wrote:
>  
>
>>Do you remove the NULs at the beginning of the MPI when you are 
>>generating your session key? (secbytes).
>>
>>Write the value of secret as a minimum-length MPI, as specific above
>>   (4-byte big-endian len, len-byte big-endian value).  Let this
>>   (4+len)-byte value be "secbytes".
>>
>>
>>That seems to indicate to me that you leave the NULs there.
>>    
>>
>
>"minimum length" indicates the removal of leading 0x00 bytes.
>
>Let's say you've got an MPI with the (implausibly small) value of
>0x123456.  MathemaWtically, that's the same number as 0x00123456
>or 0x000000000000123456.  What the above is saying is that you need
>to encode it as 00000003123456, not 0000000400123456 or any other
>such thing.
>
>   - 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/2510c144/attachment.pgp>


More information about the OTR-dev mailing list