+/*
+128-bit key
+key 01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 10
+plaintext 01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 10
+ciphertext 67 67 31 38 54 96 69 73 08 57 06 56 48 ea be 43
+*/
+void testrun_camellia(void){
+
+ uint8_t data[16] = { 0x01, 0x23, 0x45, 0x67,
+ 0x89, 0xab, 0xcd, 0xef,
+ 0xfe, 0xdc, 0xba, 0x98,
+ 0x76, 0x54, 0x32, 0x10 };
+
+ uint8_t key[16] = { 0x01, 0x23, 0x45, 0x67,
+ 0x89, 0xab, 0xcd, 0xef,
+ 0xfe, 0xdc, 0xba, 0x98,
+ 0x76, 0x54, 0x32, 0x10 };
+
+
+ camellia128_ctx_t ctx;
+ camellia128_init(key, &ctx);
+ cli_putstr_P(PSTR("\r\n key: "));
+ cli_hexdump(data, 16);
+ cli_putstr_P(PSTR("\r\n plaintext: "));
+ cli_hexdump(data, 16);
+ camellia128_enc(data, &ctx);
+ cli_putstr_P(PSTR("\r\n ciphertext: "));
+ cli_hexdump(data, 16);
+ camellia128_dec(data, &ctx);
+ cli_putstr_P(PSTR("\r\n decrypted: "));
+ cli_hexdump(data, 16);
+
+}
+