Encrypter

Trait Encrypter 

Source
pub trait Encrypter {
    type Error;

    // Required method
    fn encrypt(
        &mut self,
        id: &Id,
        key: &SecretKey,
        data: &mut [u8],
    ) -> Result<(), Self::Error>;
}
Expand description

Encrypter trait, used to encrypt data for a given service

Required Associated Types§

Required Methods§

Source

fn encrypt( &mut self, id: &Id, key: &SecretKey, data: &mut [u8], ) -> Result<(), Self::Error>

Implementors§