Trait Encrypter
dsf_core::crypto
pub trait Encrypter { type Error; fn encrypt( &mut self, id: &Id, key: &SecretKey, data: &mut [u8] ) -> Result<(), Self::Error>; }
Encrypter trait, used to encrypt data for a given service
type Error
fn encrypt( &mut self, id: &Id, key: &SecretKey, data: &mut [u8]) -> Result<(), Self::Error>