Skip to content

Commit

Permalink
Update protocols/v2/noise-sv2/src/aed_cipher.rs
Browse files Browse the repository at this point in the history
Co-authored-by: RJ Rybarczyk <[email protected]>
  • Loading branch information
Shourya742 and rrybarczyk authored Sep 2, 2024
1 parent 5347ffc commit df91ec1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion protocols/v2/noise-sv2/src/aed_cipher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ pub trait AeadCipher {
data: &mut T,
) -> Result<(), aes_gcm::Error>;

/// Decrypts the data in place with the given nonce and associated data (AD).
/// Decrypts the data in place using the provided 12-byte nonce (`n`) and AAD (`ad`).
///
/// Performs authenticated decryption on the provided mutable data buffer, modifying it in
/// place to contain the plaintext. The decryption is performed using the provided nonce and
/// AAD, ensuring that the data has not been tampered with during transit.
fn decrypt<T: Buffer>(
&mut self,
nonce: &[u8; 12],
Expand Down

0 comments on commit df91ec1

Please sign in to comment.