pub struct Key(pub [u8; 16]);Tuple Fields§
§0: [u8; 16]Implementations§
Source§impl Key
impl Key
pub fn from_string(string: &str) -> Self
Sourcepub fn do_key_expansion(&self) -> KeySchedule
pub fn do_key_expansion(&self) -> KeySchedule
Generates a series of Round Keys from the Cipher Key. The Key Expansion generates a total of Nb * (Nr + 1) words: the algorithm requires an initial set of Nb words, and each of the Nr rounds requires Nb words of key data. The resulting key schedule consists of a linear array of 4-byte words, denoted [w_i ], with i in the range 0 <= i < Nb * (Nr + 1).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more