Skip to content

Commit

Permalink
Merge pull request RustCrypto#157 from RustCrypto/aead/fix-tag-params
Browse files Browse the repository at this point in the history
aead: fix Tag params
  • Loading branch information
tarcieri committed May 31, 2020
2 parents 5e93b1d + 84e56fb commit c1c91e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aead/src/lib.rs
Expand Up @@ -261,7 +261,7 @@ pub trait AeadInPlace {
nonce: &Nonce<Self::NonceSize>,
associated_data: &[u8],
buffer: &mut [u8],
tag: &Tag<Self::NonceSize>,
tag: &Tag<Self::TagSize>,
) -> Result<(), Error>;
}

Expand Down Expand Up @@ -329,7 +329,7 @@ pub trait AeadMutInPlace {
nonce: &Nonce<Self::NonceSize>,
associated_data: &[u8],
buffer: &mut [u8],
tag: &Tag<Self::NonceSize>,
tag: &Tag<Self::TagSize>,
) -> Result<(), Error>;
}

Expand Down Expand Up @@ -430,7 +430,7 @@ impl<Alg: AeadInPlace> AeadMutInPlace for Alg {
nonce: &Nonce<Self::NonceSize>,
associated_data: &[u8],
buffer: &mut [u8],
tag: &Tag<Self::NonceSize>,
tag: &Tag<Self::TagSize>,
) -> Result<(), Error> {
<Self as AeadInPlace>::decrypt_in_place_detached(self, nonce, associated_data, buffer, tag)
}
Expand Down

0 comments on commit c1c91e6

Please sign in to comment.