Subject: | Extending Crypt::XTEA to support little endian blocks/keys |
Hello,
I stumbled upon a protocol (http://tibia.com) that applies the XTEA algorithm on little-endian 32-bit integers instead of the usual big-endian ones as in Crypt::XTEA.
I extended Crypt::XTEA with an optional little_endian => 0 parameter. This allows specifying whether to use little endian or not. This doesn't break any existing code.
I am not sure what format is appropriate, so I will just copy a web diff view of my changes:
https://github.com/a3f/Crypt-XTEA/compare/11f05f30c1fa5524333ee24fa704631f52b60dc4...master
I open this ticket after failing to reach you over mail. #perl on Freenode advised me to try here too.