Hi,
The packet size limitations can be accommodated by using the Maximum Fragment Length extension (https://tools.ietf.org/html/rfc6066#section-4, enabled by MBEDTLS_SSL_MAX_FRAGMENT_LENGTH in Mbed TLS). In Mbed TLS this is only implemented for application data and DTLS handshake messages so far, and therefore you will need to use DTLS. Also the negotiation is driven by the client and it needs to be enabled both on the server and on the client.
(See the documentation of mbedtls_ssl_conf_max_frag_len() for more details.)
I hope that helps, Janos
From: mbed-tls mbed-tls-bounces@lists.trustedfirmware.org on behalf of "Fatima, Fariya via mbed-tls" mbed-tls@lists.trustedfirmware.org Reply to: "Fatima, Fariya" Fariya.Fatima@Carrier.com Date: Tuesday, 23 June 2020 at 11:47 To: "mbed-tls@lists.trustedfirmware.org" mbed-tls@lists.trustedfirmware.org Subject: Re: [mbed-tls] BLE and Mbed TLS
Hi,
Can anyone help if mbedTLS TLS/DTLS code would work on top of BLE (specifically SPP). I am not sure if the packet size limitation on SPP would make TLS work.. any pointers anyone? Would be really helpful.
Regards, Fariya
From: Fatima, Fariya Sent: Monday, June 15, 2020 9:21 AM To: 'mbed-tls@lists.trustedfirmware.org' mbed-tls@lists.trustedfirmware.org Subject: BLE and Mbed TLS
Hi,
I wanted to use TLS over BLE application. When I googled, I figured out that MbedTLS can work on BLE. If someone can share a sample application where-in MbedTLS APIs are used as part of a BT/BLE application, it will be of great help.
Regards, Fariya