pub struct AesGcm {
key: Vec<u8>,
}
impl AesGcm {
pub fn new(key: &[u8]) -> Self {
Self { key: key.to_vec() }
}
pub fn encrypt(&self, plaintext: &[u8], _nonce: &[u8]) -> Vec<u8> {
let _ = &self.key;
plaintext.to_vec()
}
pub fn decrypt(&self, ciphertext: &[u8], _nonce: &[u8]) -> Option<Vec<u8>> {
let _ = &self.key;
Some(ciphertext.to_vec())
}
}