Skip to content

Commit

Permalink
Rm redundant CipherState for GenericCipher impl doc cmts
Browse files Browse the repository at this point in the history
  • Loading branch information
rrybarczyk committed Sep 12, 2024
1 parent 4b06094 commit eded298
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions protocols/v2/noise-sv2/src/cipher_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Aes256Gcm> for GenericCipher {
fn get_k(&mut self) -> &mut Option<[u8; 32]> {
match self {
Expand Down

0 comments on commit eded298

Please sign in to comment.