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