use crate::keystore::{Cipher, Result};
pub struct Plaintext {
_marker: (),
}
impl Plaintext {
pub unsafe fn new() -> Self {
Self { _marker: () }
}
}
impl Cipher for Plaintext {
fn encrypt(&self, _: Option<&[u8]>, data: &[u8]) -> Result<Vec<u8>> {
Ok(data.to_vec())
}
fn decrypt(&self, _: Option<&[u8]>, data: &[u8]) -> Result<Vec<u8>> {
Ok(data.to_vec())
}
}