We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec82616 commit 4587197Copy full SHA for 4587197
1 file changed
nodedb-wal/src/crypto.rs
@@ -14,7 +14,6 @@
14
//! `payload_len` includes the 16-byte auth tag.
15
16
use aes_gcm::Aes256Gcm;
17
-use aes_gcm::aead::generic_array::GenericArray;
18
use aes_gcm::aead::{Aead, KeyInit};
19
20
use crate::error::{Result, WalError};
@@ -192,7 +191,7 @@ pub const AUTH_TAG_SIZE: usize = 16;
192
191
fn lsn_to_nonce(lsn: u64) -> aes_gcm::Nonce<aes_gcm::aead::consts::U12> {
193
let mut nonce_bytes = [0u8; 12];
194
nonce_bytes[..8].copy_from_slice(&lsn.to_le_bytes());
195
- *GenericArray::from_slice(&nonce_bytes)
+ nonce_bytes.into()
196
}
197
198
#[cfg(test)]
0 commit comments