LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.
Prerequisites
Description
The TEA cipher in ECB and CBC modes does not encrypt, then decrypt into the original plaintext.
Steps to Reproduce
This is a reproducer for TEA+ECB. It should decrypt into the original plaintext (16 zero bytes), but instead it decrypts into:
Version
Latest
develop
branch checkout, Clang, Linux 64 bit.Additional Information
I've been testing all combinations of ciphers + modes for correctness. All operate as expected, the sole exceptions are TEA+ECB and TEA+CBC.