Skip to content

Commit bb4649e

Browse files
committed
Made Hmac clonable.
1 parent cc1a5fd commit bb4649e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hmac.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use mac::{Mac, MacResult};
1717
/**
1818
* The Hmac struct represents an Hmac function - a Message Authentication Code using a Digest.
1919
*/
20+
#[derive(Clone)]
2021
pub struct Hmac<D> {
2122
digest: D,
2223
i_key: Vec<u8>,

0 commit comments

Comments
 (0)