Skip to content

Commit

Permalink
rc5: fixed old cipher types
Browse files Browse the repository at this point in the history
  • Loading branch information
NamedNeon committed Aug 31, 2023
1 parent 1f4ff69 commit ac4b3c2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 14 additions & 0 deletions rc5/src/block_cipher.rs
Original file line number Diff line number Diff line change
@@ -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},
Expand Down Expand Up @@ -344,3 +345,16 @@ where
)
}
}

#[allow(dead_code)]
#[deprecated(since = "0.1.0", note = "use RC5<u16, U16, U8> instead.")]
pub type RC5_16_16_8 = RC5<u16, U16, U8>;
#[allow(dead_code)]
#[deprecated(since = "0.1.0", note = "use RC5<u32, U12, U16> instead.")]
pub type RC5_32_12_16 = RC5<u32, U12, U16>;
#[allow(dead_code)]
#[deprecated(since = "0.1.0", note = "use RC5<u32, U16, U16> instead.")]
pub type RC5_32_16_16 = RC5<u32, U16, U16>;
#[allow(dead_code)]
#[deprecated(since = "0.1.0", note = "use RC5<u64, U24, U24> instead.")]
pub type RC5_64_24_24 = RC5<u64, U24, U24>;
14 changes: 0 additions & 14 deletions rc5/src/core/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -228,16 +227,3 @@ where
cipher::zeroize::Zeroize::zeroize(&mut *self.key_table)
}
}

#[allow(dead_code)]
#[deprecated(since = "0.0.2", note = "use RC5<u16, U16, U8> instead.")]
pub type RC5_16_16_8 = RC5<u16, U16, U8>;
#[allow(dead_code)]
#[deprecated(since = "0.0.2", note = "use RC5<u32, U12, U16> instead.")]
pub type RC5_32_12_16 = RC5<u32, U12, U16>;
#[allow(dead_code)]
#[deprecated(since = "0.0.2", note = "use RC5<u32, U16, U16> instead.")]
pub type RC5_32_16_16 = RC5<u32, U16, U16>;
#[allow(dead_code)]
#[deprecated(since = "0.0.2", note = "use RC5<u64, U24, U24> instead.")]
pub type RC5_64_24_24 = RC5<u64, U24, U24>;

0 comments on commit ac4b3c2

Please sign in to comment.