Skip to content

Commit

Permalink
[zk-sdk] Make AeKey be Clone and AeCiphertext be Copy (#3273)
Browse files Browse the repository at this point in the history
* make `AeKey` `Clone`

* make `AeCiphertext` `Copy`
  • Loading branch information
samkim-crypto authored Oct 23, 2024
1 parent a2523e9 commit 0f35db7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zk-sdk/src/encryption/auth_encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl AuthenticatedEncryption {
}
}

#[derive(Debug, Zeroize, Eq, PartialEq)]
#[derive(Clone, Debug, Zeroize, Eq, PartialEq)]
pub struct AeKey([u8; AE_KEY_LEN]);
impl AeKey {
/// Generates a random authenticated encryption key.
Expand Down Expand Up @@ -243,7 +243,7 @@ type Nonce = [u8; NONCE_LEN];
type Ciphertext = [u8; CIPHERTEXT_LEN];

/// Authenticated encryption nonce and ciphertext
#[derive(Debug, Default, Clone)]
#[derive(Clone, Copy, Debug, Default)]
pub struct AeCiphertext {
nonce: Nonce,
ciphertext: Ciphertext,
Expand Down

0 comments on commit 0f35db7

Please sign in to comment.