I am having problems with the Key_TinyEncryptionAlgorithm class, where the result of an Encrypt operation is an array with all zeros (of the same length–16 bytes–as the array to encrypt). In order to do a sanity check I tried with the sample in the tutorial at [url]GHI Electronics – Where Hardware Meets Software and had the same result even after replacing the funny nulls with an arrays as the initial vector.
I’m sure to be missing something, but right now I am stumped. Any help would be appreciated.
Then I tried again, replacing the null values in the Encrypt and Decrypt function calls with an array of 8 bytes containing { 1,2,3,4,5,6,7,8 } just to make sure. Still no dice.
Still looking into it. There is more than one party involved in this issue so it may take a bit. You can use an older SDK which has XTEA working of XTEA is a must have for now.