pub trait CryptoEngine: Send + Sync {
// Required methods
fn encrypt(&self, plaintext: &[u8]) -> FsResult<(Vec<u8>, Vec<u8>)>;
fn decrypt(&self, nonce: &[u8], ciphertext: &[u8]) -> FsResult<Vec<u8>>;
}Expand description
Trait for encrypting and decrypting logical object payloads.