+void test_xtea(void){
+ uint8_t key[16];
+ uint8_t data[8];
+
+ memset(key, 0, 16);
+ key[0] = 0x80;
+ memset(data, 0, 8);
+ cli_putstr_P(PSTR("\r\n*** XTEA test ***\r\n key: "));
+ cli_hexdump(key, 16);
+ cli_putstr_P(PSTR("\r\n plain: "));
+ cli_hexdump(data, 8);
+ xtea_enc(data, data, key);
+ cli_putstr_P(PSTR("\r\n crypt: "));
+ cli_hexdump(data, 8);
+ xtea_dec(data, data, key);
+ cli_putstr_P(PSTR("\r\n plain: "));
+ cli_hexdump(data, 8);
+}
+