Crates.io | embedded-tls |
lib.rs | embedded-tls |
version | 0.17.0 |
source | src |
created_at | 2022-05-04 10:18:10.030144 |
updated_at | 2024-01-06 20:31:26.368855 |
description | TLS 1.3 client with no_std support and no allocator |
homepage | https://drogue.io |
repository | https://github.com/drogue-iot/embedded-tls |
max_upload_size | |
id | 580317 |
size | 268,306 |
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.