diff --git a/aead/src/lib.rs b/aead/src/lib.rs index 27993770..aaf7c9ff 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -237,7 +237,7 @@ pub trait AeadInPlace { nonce: &Nonce, associated_data: &[u8], buffer: &mut [u8], - ) -> Result, Error>; + ) -> Result, Error>; /// Decrypt the message in-place, returning an error in the event the /// provided authentication tag does not match the given ciphertext. @@ -305,7 +305,7 @@ pub trait AeadMutInPlace { nonce: &Nonce, associated_data: &[u8], buffer: &mut [u8], - ) -> Result, Error>; + ) -> Result, Error>; /// Decrypt the message in-place, returning an error in the event the /// provided authentication tag does not match the given ciphertext. @@ -412,7 +412,7 @@ impl AeadMutInPlace for Alg { nonce: &Nonce, associated_data: &[u8], buffer: &mut [u8], - ) -> Result, Error> { + ) -> Result, Error> { ::encrypt_in_place_detached(self, nonce, associated_data, buffer) }