1 unstable release

0.1.0 Sep 17, 2020

#1828 in Cryptography

Apache-2.0

7MB
147K SLoC

C 92K SLoC // 0.1% comments Rust 29K SLoC // 0.0% comments Shell 12K SLoC // 0.1% comments Visual Studio Project 9K SLoC Python 3.5K SLoC // 0.4% comments Perl 1.5K SLoC // 0.3% comments Visual Studio Solution 730 SLoC C++ 94 SLoC // 0.2% comments GDB Script 22 SLoC // 0.7% comments Batch 16 SLoC Bitbake 7 SLoC TCL 4 SLoC

Embedded-TLS

CI crates.io docs.rs Matrix

Embedded-TLS is a Rust-native TLS 1.3 implementation that works in a no-std environment. The Rust crate was formerly known as drogue-tls. The implementation is work in progress, but the example clients should work against the rustls echo server.

The client supports both async and blocking modes. By default, the std feature is enabled, but can be disabled for bare metal usage.

To use the async mode, import embedded_tls::*. To use the blocking mode, import embedded_tls::blocking::*.

Some features and extensions are not yet implemented, have a look at open issues.

Only supports writing/receiving one frame at a time, hence using a frame buffer larger than 16k is not currently needed. You may use a lower frame buffer size, but there is no guarantee that it will be able to parse any TLS 1.3 frame.

Community

Dependencies