[UPD] bitwise "shift"s

Sean Shao shaosean at hotmail.com
Fri Nov 25 22:34:26 EST 2005


>Thanks again for these functions, and for all the time it must have taken 
>to figure out what you can do and what you can't.

Not a problem, but I'm learning quickly that I can barely do bit math ;-)  
Up until I started working on SHA-1 I never used bit math, but here's to 
learning new things =)


>Alejandro got me interested in the md4digest function, so I tried it using 
>your functions, and I'm afraid there is still one problem.

As much as I'd love to say that they're perfect, they're not.. If there's 
anyone out there who actually knows about these things and wants to help us 
out, please speak up =)


>The problem is that 6448964192 is a positive number which has the "sign" 
>bit set - i.e. it's larger than a single 32-bit positive integer can hold, 
>but Rev 2.6.1 uses (I guess??) 64-bit ints if needed (??)

I did more updating of the functions last night, but I didn't feel like 
spamming the list with _another_ change so I've decided to work out more of 
the functions before posting again.. The functions should check if the data 
is signed or not and do the appropriate math..  I'll run your numbers 
through and see if I can spot anything that needs to be adjusted..
I'm only on 2.0.3 so I can't even do full 32-bit math let alone 64-bit  =/

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/




More information about the use-livecode mailing list