On Tue, 8 Feb 2005 20:46:35 -0000, Stadin, Benjamin <[EMAIL PROTECTED]> wrote:

I'm encrypting my database on PC and decryp it on the Palm. Do I have to worry about Little Endianess / Big Endianess?

The TEA algo treats the input block of 8 bytes as 2 longs and the 16 byte key as 4 longs, so you'd better byteswap the values on the PC when you read and write these values. BTW, PalmOS natively supports DES, MD4 and MD5 (see Encrypt.h), so you can use MD5 to create a 16 byte key from a keyphrase (it's not too difficult to implement MD5 on the PC side).


--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to