Skip to content

Commit 859ca00

Browse files
teythoonJustus Winter
and
Justus Winter
authored
twofish: Derive Clone for Twofish. (#287)
This aligns Twofish with AES. Among other things, it allows its use with EAX with requires Clone. Co-authored-by: Justus Winter <[email protected]>
1 parent 2d85d97 commit 859ca00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

twofish/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ use crate::consts::{MDS_POLY, QBOX, QORD, RS, RS_POLY};
2525
type Block = GenericArray<u8, U16>;
2626

2727
/// Twofish block cipher
28+
#[derive(Clone)]
2829
pub struct Twofish {
2930
s: [u8; 16], // S-box key
3031
k: [u32; 40], // Subkeys

0 commit comments

Comments
 (0)