[OTR-dev] Fingerprints?

alex323 alex323 at gmail.com
Wed Jan 19 16:58:03 EST 2005


Oh, I see now. (0x00123456 == 0x123456) != 0x00 0x00 0x12 0x34 0x56

So by byte[] would have:

[0] = 0x03
[1] = 0x12
[2] = 0x34
[3] = 0x56

Instead of:

[0] = 0x00
[1] = 0x00
[2] = 0x00
[3] = 0x03
[4] = 0x12
[5] = 0x34
[6] = 0x56

Ian Goldberg wrote:

>On Wed, Jan 19, 2005 at 03:50:04PM -0500, alex323 wrote:
>  
>
>>Heh, I saw my mistake now. Fixed:
>>
>>0x00123456 == 0x123456 == (len = 3) == 0x0003123456 == 0x3123456
>>    
>>
>
>Still no.  0x00123456 and 0x123456 are numbers, and they are equal in
>value.  They are both *represented* by the _string_ (or byte array, if
>you prefer): "\x00\x00\x00\x03\x12\x34\x56", which is *not* the same as
>the string "\x03\x12\34\56".
>
>   - 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/2db4f9db/attachment.pgp>


More information about the OTR-dev mailing list