Code cleanup

This commit is contained in:
2024-05-11 17:25:15 +03:00
parent 913d90f077
commit aa3c2ae313
20 changed files with 45 additions and 43 deletions

View File

@@ -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();