Skip to content

Commit

Permalink
Derived Clone for AeadTag (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycscaly authored Mar 9, 2023
1 parent 066f255 commit 0316589
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aead.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ fn mix_nonce<A: Aead>(base_nonce: &AeadNonce<A>, seq: &Seq) -> AeadNonce<A> {
}

/// An authenticated encryption tag
#[derive(Clone)]
pub struct AeadTag<A: Aead>(GenericArray<u8, <A::AeadImpl as BaseAeadCore>::TagSize>);

impl<A: Aead> Default for AeadTag<A> {
Expand Down

0 comments on commit 0316589

Please sign in to comment.