Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
Add Clone and PartialEq traits
Browse files Browse the repository at this point in the history
  • Loading branch information
bburnichon committed Jan 6, 2020
1 parent 80d925c commit 9f71c6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const TAG_LEN: usize = 16;
const KEY_LEN: usize = 32;

/// Real derived key
pub struct Ec3Key([u8; 32]);
#[derive(Clone, PartialEq)]
pub struct Ec3Key(pub [u8; 32]);

impl Ec3Key {
/// Create a new key that could be used for encryption/decryption afterwards
Expand Down

0 comments on commit 9f71c6d

Please sign in to comment.