Modifying the TLS library to encrypt over BLE

@mheida17 If I understand your requirement, you want to use TLS over BLE transport. Am I right?
TLS stands for Transport Layer Security, and can be used for any Transport Layer. This can be done with Mbed TLS! You only need to implement your own bio callbacks, and set them using mbedtls_ssl_set_bio().

Note that Mbed OS already has BLE enabled, and integrated, and has support for many platforms. Have you considered using Mbed OS?

I suggest you read the following articles:

There are other articles in the knowledge base that may interest you as well.
I hope this answers your question.

Regards,
Mbed TLS Team member
Ron