From ac4b3c2ebd4602029397211da86a3675866fe7dc Mon Sep 17 00:00:00 2001 From: NamedNeon <130935222+NamedNeon@users.noreply.github.com> Date: Thu, 31 Aug 2023 10:14:37 -0400 Subject: [PATCH] rc5: fixed old cipher types --- rc5/src/block_cipher.rs | 14 ++++++++++++++ rc5/src/core/backend.rs | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) 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;