warvair / as3crypto

Automatically exported from code.google.com/p/as3crypto
0 stars 0 forks source link

XTea implementation is wrong #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
XTea implementation is wrong. Because it operates on uint types it should use 
">>>" operator for right shift (instead of ">>" which produce wrong results).

You can verify it with C code from wiki: http://en.wikipedia.org/wiki/XTEA

Original issue reported on code.google.com by radek.bulat@gmail.com on 12 Sep 2010 at 11:38