diff --git a/rc5/src/block_cipher.rs b/rc5/src/block_cipher.rs index 5ec6fd5b..3f7aa4f1 100644 --- a/rc5/src/block_cipher.rs +++ b/rc5/src/block_cipher.rs @@ -1,6 +1,7 @@ use core::ops::{Add, Div, Mul, Sub}; use cipher::{ + consts::*, generic_array::ArrayLength, inout::InOut, typenum::{Diff, IsLess, Le, NonZero, Sum, Unsigned, U1, U2, U256}, @@ -344,3 +345,16 @@ where ) } } + +#[allow(dead_code)] +#[deprecated(since = "0.1.0", note = "use RC5 instead.")] +pub type RC5_16_16_8 = RC5; +#[allow(dead_code)] +#[deprecated(since = "0.1.0", note = "use RC5 instead.")] +pub type RC5_32_12_16 = RC5; +#[allow(dead_code)] +#[deprecated(since = "0.1.0", note = "use RC5 instead.")] +pub type RC5_32_16_16 = RC5; +#[allow(dead_code)] +#[deprecated(since = "0.1.0", note = "use RC5 instead.")] +pub type RC5_64_24_24 = RC5; diff --git a/rc5/src/core/backend.rs b/rc5/src/core/backend.rs index 78b96f10..dea60da1 100644 --- a/rc5/src/core/backend.rs +++ b/rc5/src/core/backend.rs @@ -5,7 +5,6 @@ use core::{ }; use cipher::{ - consts::*, generic_array::{sequence::GenericSequence, ArrayLength, GenericArray}, inout::InOut, typenum::{Diff, IsLess, Le, NonZero, Sum, U1, U2}, @@ -228,16 +227,3 @@ where cipher::zeroize::Zeroize::zeroize(&mut *self.key_table) } } - -#[allow(dead_code)] -#[deprecated(since = "0.0.2", note = "use RC5 instead.")] -pub type RC5_16_16_8 = RC5; -#[allow(dead_code)] -#[deprecated(since = "0.0.2", note = "use RC5 instead.")] -pub type RC5_32_12_16 = RC5; -#[allow(dead_code)] -#[deprecated(since = "0.0.2", note = "use RC5 instead.")] -pub type RC5_32_16_16 = RC5; -#[allow(dead_code)] -#[deprecated(since = "0.0.2", note = "use RC5 instead.")] -pub type RC5_64_24_24 = RC5;