Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 0 additions & 1 deletion cbc/src/decrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use core::fmt;
use cipher::zeroize::{Zeroize, ZeroizeOnDrop};

/// CBC mode decryptor.
#[derive(Clone)]
pub struct Decryptor<C>
where
C: BlockCipherDecrypt,
Expand Down
1 change: 0 additions & 1 deletion cbc/src/encrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use core::fmt;
use cipher::zeroize::{Zeroize, ZeroizeOnDrop};

/// CBC mode encryptor.
#[derive(Clone)]
pub struct Encryptor<C>
where
C: BlockCipherEncrypt,
Expand Down
2 changes: 0 additions & 2 deletions cfb-mode/src/decrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use core::fmt;
use cipher::zeroize::{Zeroize, ZeroizeOnDrop};

/// CFB mode decryptor.
#[derive(Clone)]
pub struct Decryptor<C>
where
C: BlockCipherEncrypt,
Expand All @@ -22,7 +21,6 @@ where
}

/// CFB mode buffered decryptor.
#[derive(Clone)]
pub struct BufDecryptor<C>
where
C: BlockCipherEncrypt,
Expand Down
1 change: 0 additions & 1 deletion cfb-mode/src/encrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ mod buf;
pub use buf::BufEncryptor;

/// CFB mode encryptor.
#[derive(Clone)]
pub struct Encryptor<C>
where
C: BlockCipherEncrypt,
Expand Down
1 change: 0 additions & 1 deletion cfb-mode/src/encrypt/buf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use core::fmt;
use cipher::zeroize::{Zeroize, ZeroizeOnDrop};

/// CFB mode buffered encryptor.
#[derive(Clone)]
pub struct BufEncryptor<C>
where
C: BlockCipherEncrypt,
Expand Down
1 change: 0 additions & 1 deletion cfb8/src/decrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use core::fmt;
use cipher::zeroize::{Zeroize, ZeroizeOnDrop};

/// CFB-8 mode decryptor.
#[derive(Clone)]
pub struct Decryptor<C>
where
C: BlockCipherEncrypt,
Expand Down
1 change: 0 additions & 1 deletion cfb8/src/encrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use core::fmt;
use cipher::zeroize::{Zeroize, ZeroizeOnDrop};

/// CFB-8 mode encryptor.
#[derive(Clone)]
pub struct Encryptor<C>
where
C: BlockCipherEncrypt,
Expand Down
14 changes: 0 additions & 14 deletions ctr/src/ctr_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,20 +151,6 @@ where
}
}

impl<C, F> Clone for CtrCore<C, F>
where
C: BlockCipherEncrypt + Clone,
F: CtrFlavor<C::BlockSize>,
{
#[inline]
fn clone(&self) -> Self {
Self {
cipher: self.cipher.clone(),
ctr_nonce: self.ctr_nonce.clone(),
}
}
}

impl<C, F> fmt::Debug for CtrCore<C, F>
where
C: BlockCipherEncrypt + AlgorithmName,
Expand Down
1 change: 0 additions & 1 deletion cts/src/cbc_cs1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use cipher::{
};

/// The CBC-CS-1 ciphertext stealing mode.
#[derive(Clone)]
pub struct CbcCs1<C: BlockSizeUser> {
cipher: C,
iv: Block<C>,
Expand Down
1 change: 0 additions & 1 deletion cts/src/cbc_cs2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use cipher::{
};

/// The CBC-CS-2 ciphertext stealing mode.
#[derive(Clone)]
pub struct CbcCs2<C: BlockSizeUser> {
cipher: C,
iv: Block<C>,
Expand Down
1 change: 0 additions & 1 deletion cts/src/cbc_cs3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use cipher::{
};

/// The CBC-CS-3 ciphertext stealing mode.
#[derive(Clone)]
pub struct CbcCs3<C: BlockSizeUser> {
cipher: C,
iv: Block<C>,
Expand Down
1 change: 0 additions & 1 deletion cts/src/ecb_cs1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use cipher::{
};

/// The ECB-CS-1 ciphertext stealing mode.
#[derive(Clone)]
pub struct EcbCs1<C: BlockSizeUser> {
cipher: C,
}
Expand Down
1 change: 0 additions & 1 deletion cts/src/ecb_cs2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use cipher::{
};

/// The ECB-CS-2 ciphertext stealing mode.
#[derive(Clone)]
pub struct EcbCs2<C: BlockSizeUser> {
cipher: C,
}
Expand Down
1 change: 0 additions & 1 deletion cts/src/ecb_cs3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use cipher::{
};

/// The ECB-CS-3 ciphertext stealing mode.
#[derive(Clone)]
pub struct EcbCs3<C: BlockSizeUser> {
cipher: C,
}
Expand Down
1 change: 0 additions & 1 deletion ige/src/decrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use core::{fmt, ops::Add};
use cipher::zeroize::{Zeroize, ZeroizeOnDrop};

/// IGE mode decryptor.
#[derive(Clone)]
pub struct Decryptor<C>
where
C: BlockCipherDecrypt,
Expand Down
1 change: 0 additions & 1 deletion ige/src/encrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use core::{fmt, ops::Add};
use cipher::zeroize::{Zeroize, ZeroizeOnDrop};

/// IGE mode encryptor.
#[derive(Clone)]
pub struct Encryptor<C>
where
C: BlockCipherEncrypt,
Expand Down
1 change: 0 additions & 1 deletion ofb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ use cipher::zeroize::{Zeroize, ZeroizeOnDrop};
pub type Ofb<C> = StreamCipherCoreWrapper<OfbCore<C>>;

/// Output feedback (OFB) mode.
#[derive(Clone)]
pub struct OfbCore<C>
where
C: BlockCipherEncrypt,
Expand Down
1 change: 0 additions & 1 deletion pcbc/src/decrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use core::fmt;
use cipher::zeroize::{Zeroize, ZeroizeOnDrop};

/// PCBC mode decryptor.
#[derive(Clone)]
pub struct Decryptor<C>
where
C: BlockCipherDecrypt,
Expand Down
1 change: 0 additions & 1 deletion pcbc/src/encrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use core::fmt;
use cipher::zeroize::{Zeroize, ZeroizeOnDrop};

/// PCBC mode encryptor.
#[derive(Clone)]
pub struct Encryptor<C>
where
C: BlockCipherEncrypt,
Expand Down