tc_rc_cipher 0.1.0

RC2, RC5 and RC6 block ciphers for legacy interoperability, with an optional RustCrypto RC2 engine.
Documentation
mod cipher;
mod rc5_32_engine;
mod rc5_64_engine;

pub use rc5_32_engine::Rc532Engine;
pub use rc5_64_engine::Rc564Engine;

/// Standard RC5 round count.
pub const DEFAULT_ROUNDS: usize = 12;
/// Maximum RC5 round count defined by RFC 2040.
pub const MAX_ROUNDS: usize = 255;
/// Maximum RC5 key length in bytes.
pub const MAX_KEY_BYTES: usize = 255;
/// RC5-32 block length in bytes.
pub const RC5_32_BLOCK_BYTES: usize = 8;
/// RC5-64 block length in bytes.
pub const RC5_64_BLOCK_BYTES: usize = 16;

/// RC5-32 display name.
pub const RC5_32_ALGO_NAME: &str = "RC5-32";
/// RC5-64 display name.
pub const RC5_64_ALGO_NAME: &str = "RC5-64";