Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
//! // Initialize cipher
//! let cipher = Aes128::new(&key);
//!
//! let block_copy = block.clone();
//! let block_copy = block;
//!
//! // Encrypt block in-place
//! cipher.encrypt_block(&mut block);
Expand Down
2 changes: 1 addition & 1 deletion aria/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! // Initialize cipher
//! let cipher = Aria128::new(&key);
//!
//! let block_copy = block.clone();
//! let block_copy = block;
//! // Encrypt block in-place
//! cipher.encrypt_block(&mut block);
//! // And decrypt it back
Expand Down
2 changes: 1 addition & 1 deletion cast5/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! // Initialize cipher
//! let cipher = Cast5::new(&key);
//!
//! let block_copy = block.clone();
//! let block_copy = block;
//! // Encrypt block in-place
//! cipher.encrypt_block(&mut block);
//! // And decrypt it back
Expand Down
2 changes: 1 addition & 1 deletion cast6/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! // Initialize cipher
//! let cipher = Cast6::new(&key);
//!
//! let block_copy = block.clone();
//! let block_copy = block;
//! // Encrypt block in-place
//! cipher.encrypt_block(&mut block);
//! // And decrypt it back
Expand Down
2 changes: 1 addition & 1 deletion speck/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ macro_rules! new_test {
let ciphertext = hex!($ct_hex);
let cipher = $cipher::new(&key.into());

let mut block = plaintext.clone().into();
let mut block = plaintext.into();
cipher.encrypt_block(&mut block);

assert_eq!(&ciphertext, block.as_slice());
Expand Down
4 changes: 2 additions & 2 deletions twofish/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ macro_rules! new_test {
for i in 1..50 {
let twofish = Twofish::new_from_slice(&key).unwrap();

let mut buf = plain.clone();
let mut buf = plain;
twofish.encrypt_block(&mut buf);
cipher = buf.clone();
cipher = buf;
twofish.decrypt_block(&mut buf);
assert_eq!(plain, buf);

Expand Down