fn encrypt_in_place(
        &mut self,
        nonce: &Nonce<Self>,
        associated_data: &[u8],
        buffer: &mut impl Buffer,
    ) -> Result<()> {
        let tag = self.encrypt_in_place_detached(nonce, associated_data, buffer.as_mut())?;
        buffer.extend_from_slice(tag.as_slice())?;
        Ok(())
    }
/// Encrypt the given buffer containing a plaintext message in-place.
///
/// The buffer must have sufficient capacity to store the ciphertext
/// message, which will always be larger than the original plaintext.
/// The exact size needed is cipher-dependent, but generally includes
/// the size of an authentication tag.
///
/// Returns an error if the buffer has insufficient capacity to store the
/// resulting ciphertext message.
Encrypt the given buffer containing a plaintext message in-place.
The buffer must have sufficient capacity to store the ciphertext
message, which will always be larger than the original plaintext.
The exact size needed is cipher-dependent, but generally includes
the size of an authentication tag.

Returns an error if the buffer has insufficient capacity to store the
resulting ciphertext message.
Encrypt the given buffer containing a plaintext message in - place . The buffer must have sufficient capacity to store the ciphertext message which will always be larger than the original plaintext . The exact size needed is cipher - dependent but generally includes the size of an authentication tag . Returns an error if the buffer has insufficient capacity to store the resulting ciphertext message .
fn encrypt_in_place(
        &mut self,
        nonce: &Nonce<Self>,
        associated_data: &[u8],
        buffer: &mut impl Buffer,
    ) -> Result<()> {
        let tag = self.encrypt_in_place_detached(nonce, associated_data, buffer.as_mut())?;
        buffer.extend_from_slice(tag.as_slice())?;
        Ok(())
    }
fn encrypt_in_place ( & mut self , nonce : & Nonce < Self > , associated_data : & [ u8 ] , buffer : & mut impl Buffer , ) -> Result < ( ) > { let tag = self . encrypt_in_place_detached ( nonce , associated_data , buffer . as_mut ( ) ) ? ; buffer . extend_from_slice ( tag . as_slice ( ) ) ? ; Ok ( ( ) ) }
Encrypt the given buffer containing a plaintext message in-place.
Encrypt the given buffer containing a plaintext message in - place .
&mut self
nonce
&Nonce<Self>
associated_data
&[u8]
buffer
&mut impl Buffer
&mut self
nonce
&Nonce<Self>
associated_data
&[u8]
buffer
&mut impl Buffer