I've found examples in C but I'm not experienced with inline C. Could someone adapt these examples to usable inline code?
RSA
https://github.com/espressif/arduino-esp32/blob/master/tools/sdk/include/mbedtls/mbedtls/rsa.h
AES
https://everythingesp.com/esp32-arduino-tutorial-encryption-aes128-in-ecb-mode/
RSA
https://github.com/espressif/arduino-esp32/blob/master/tools/sdk/include/mbedtls/mbedtls/rsa.h
AES
https://everythingesp.com/esp32-arduino-tutorial-encryption-aes128-in-ecb-mode/