#include "rijndael.h" #include "btstack_debug.h" #include #include void aes128_calc_cyphertext(uint8_t key[16], uint8_t plaintext[16], uint8_t cyphertext[16]){ uint32_t rk[RKLENGTH(KEYBITS)]; int nrounds = rijndaelSetupEncrypt(rk, &key[0], KEYBITS); rijndaelEncrypt(rk, nrounds, plaintext, cyphertext); } static void hexdump2(void *data, int size){ if (size <= 0) return; int i; for (i=0; i