I think the two API blufi_aes_encrypt & blufi_aes_decrypt are to be used to encrypt and decrypt. I tried to make a test code.
first I initalized
Code: Select all
if( security_init() == ESP_FAIL )
ESP_LOGI(TAG,"Security init failed.\n");
aes_encrypt(10, input,5); <---- but this keeps crashing I don't understand its input.
ESP_LOGI(TAG,"Encrypted : %s \n",input);
I am also thinking where the encryption key set?
I want simple way to encrypt and decrypt data. so please any example would be helpful.