Trait lockchain_core::traits::EncryptionHandler
[−]
[src]
pub trait EncryptionHandler<T> where
T: Encryptable + AutoEncoder + Body, { fn encrypt(&mut self, item: T) -> EncryptedBody; fn decrypt(&mut self, item: EncryptedBody) -> Option<T>; }
A base trait that describes the basic functionality of an encryption backend which handles encrypted files.
Encryption is never done directly on the bodies, only via this scheduler type with the help of the [Encryptable] trait.