Function rc5_cipher::rc5::expand_key

source ·
pub fn expand_key<W, const T: usize>(key: Vec<u8>) -> [W; T]where
    W: Unsigned,
Expand description

Expands key into and array of length T of type W

W: is the data type. Currently supported: u8, u16, u32, u64, u128 T: is the key expansion length T = 2 * (r + 1) being r number of rounds. T should be even.

Example:

let key = vec![0x00, 0x01, 0x02, 0x03]; let key_exp = expand_key::<W,T>(key);