Code cleanup
This commit is contained in:
@@ -22,7 +22,6 @@ impl Cipher {
|
||||
|
||||
/// Encrypts the value with the current cipher. The 12 byte nonce is appended to the result
|
||||
#[inline]
|
||||
#[allow(clippy::missing_panics_doc)]
|
||||
pub fn encrypt(&self, value: &mut Vec<u8>) {
|
||||
let nonce = ChaCha20Poly1305::generate_nonce(&mut OsRng);
|
||||
self.chacha.encrypt_in_place(&nonce, b"", value).unwrap();
|
||||
|
Reference in New Issue
Block a user