embedded-tls 0.17.0

TLS 1.3 client with no_std support and no allocator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::application_data::ApplicationData;
use crate::extensions::extension_data::supported_groups::NamedGroup;
use p256::ecdh::SharedSecret;

pub struct CryptoEngine {
    group: NamedGroup,
    shared: SharedSecret,
}

impl CryptoEngine {
    pub fn new(group: NamedGroup, shared: SharedSecret) -> Self {
        Self { group, shared }
    }

    pub fn decrypt(&self, _: &ApplicationData) {}
}