TlsWrapper

Trait TlsWrapper 

Source
pub trait TlsWrapper {
    // Required methods
    fn wrap_stream(&self, plaintext: &[u8]) -> Vec<u8> ;
    fn unwrap_stream(&self, ciphertext: &[u8]) -> Vec<u8> ;
}
Expand description

Interface that would wrap an external TLS channel when available.

Required Methods§

Source

fn wrap_stream(&self, plaintext: &[u8]) -> Vec<u8>

Source

fn unwrap_stream(&self, ciphertext: &[u8]) -> Vec<u8>

Implementors§