Page 1 of 1

TLS libraries

Posted: Sun Jan 21, 2018 4:50 pm
by smon32
Hi there,

I saw that a chibios patch for wolfssl appeared in ext.
There is a state of the art and future proof alternative for those who are targeting STM32 MCUs:

mbed TLS

It is supported by ARM itself, which means that it is deeply embeeded for ARMs (ex: STM32CubeMX)

It already works out of the box with chibios.
Actually, you just need to provide:
- mutex: init, free, lock, unlock (that use chibios mutexes).
- network: init, connect, bind, accept, recv, send, free (that use lwip POSIX sockets).
- optionnaly use the STM32 random generator.
- optionnaly use the STM32 crypt and hash.

You can add the library to chibios the way you like it (simple makefile and includes), and not like the cmake hell you live with another TLS libraries.
mbed TLS (formerly known as PolarSSL) makes it trivially easy for developers to include cryptographic and SSL/TLS capabilities in their (embedded) products, facilitating this functionality with a minimal coding footprint.

Best regards,

Re: TLS libraries

Posted: Tue Jan 23, 2018 10:54 am
by Giovanni

Thanks for the explanation, WolfSSL people provided us with the integration layers and HTTPS demo, this is why you see it included. Good to know there are alternatives anyway.