Trait internet2::Decrypt

source ·
pub trait Decrypt {
    type Error: Error;

    // Required method
    fn decrypt(
&mut self,
buffer: impl Borrow<[u8]>
) -> Result<Vec<u8>, Self::Error>; }

Required Associated Types§

Required Methods§

source

fn decrypt(&mut self, buffer: impl Borrow<[u8]>) -> Result<Vec<u8>, Self::Error>

Implementors§

source§

impl Decrypt for PlainTranscoder

§

type Error = Error

source§

impl<const LEN_SIZE: usize> Decrypt for NoiseDecryptor<LEN_SIZE>

source§

impl<const LEN_SIZE: usize> Decrypt for NoiseTranscoder<LEN_SIZE>