Struct susurrus::session::NoiseBody
[−]
[src]
pub struct NoiseBody { /* fields omitted */ }
Methods
impl NoiseBody
[src]
pub fn read(buf: &[u8]) -> NoiseBody
[src]
pub fn write(&self) -> Vec<u8>
[src]
pub fn encrypt(
key: &Key,
nonce: &Nonce,
authtext: &[u8],
plaintext: &[u8]
) -> NoiseBody
[src]
key: &Key,
nonce: &Nonce,
authtext: &[u8],
plaintext: &[u8]
) -> NoiseBody
pub fn decrypt(
&self,
key: &Key,
nonce: &Nonce,
authtext: &[u8]
) -> Result<Vec<u8>, ()>
[src]
&self,
key: &Key,
nonce: &Nonce,
authtext: &[u8]
) -> Result<Vec<u8>, ()>