From eded2984ffdfc99b3a119f08c05deab0712a6607 Mon Sep 17 00:00:00 2001 From: RJ Rybarczyk Date: Thu, 12 Sep 2024 15:48:27 -0400 Subject: [PATCH] Rm redundant CipherState for GenericCipher impl doc cmts --- protocols/v2/noise-sv2/src/cipher_state.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/protocols/v2/noise-sv2/src/cipher_state.rs b/protocols/v2/noise-sv2/src/cipher_state.rs index 61553cdf05..58ae9ed4c2 100644 --- a/protocols/v2/noise-sv2/src/cipher_state.rs +++ b/protocols/v2/noise-sv2/src/cipher_state.rs @@ -245,14 +245,6 @@ impl GenericCipher { } } -/// Represents the state of an AEAD cipher when using [`Aes256Gcm`], including the encryption key -/// and nonce. -/// -/// The [`Cipher`] struct manages the cryptographic state required to perform AEAD encryption and -/// decryption operations. It stores the optional 32-byte encryption key (`k`), the nonce (`n`), -/// and the optional cipher instance itself. The [`CipherState`] trait is implemented for this -/// struct to provide a consistent interface for managing cipher state across different AEAD -/// ciphers. impl CipherState for GenericCipher { fn get_k(&mut self) -> &mut Option<[u8; 32]> { match self {