Skip to content

Commit

Permalink
rc5: bump version to 0.1.0; deprecate predefined RC5 types.
Browse files Browse the repository at this point in the history
  • Loading branch information
NamedNeon committed Aug 31, 2023
1 parent 22e7cc2 commit fe20059
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rc5/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rc5"
version = "0.0.1"
version = "0.0.2"
description = "RC5 block cipher"
authors = ["RustCrypto Developers"]
edition = "2021"
Expand Down
14 changes: 14 additions & 0 deletions rc5/src/core/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ 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 @@ -227,3 +228,16 @@ 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 fe20059

Please sign in to comment.