pub struct ExpandedKey { /* private fields */ }
Expand description
A set of generated keys to account for each round of the said cipher version encryption/decryption process.
Implementations§
Source§impl ExpandedKey
impl ExpandedKey
Sourcepub fn new(
cipher_version: &CipherVersion<'_>,
) -> Result<ExpandedKey, KeyExpansionError>
pub fn new( cipher_version: &CipherVersion<'_>, ) -> Result<ExpandedKey, KeyExpansionError>
Expands the given key based on the specified cipher version.
pub fn original_key(&self) -> &Vec<u8> ⓘ
pub fn content(&self) -> &Vec<u8> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExpandedKey
impl RefUnwindSafe for ExpandedKey
impl Send for ExpandedKey
impl Sync for ExpandedKey
impl Unpin for ExpandedKey
impl UnwindSafe for ExpandedKey
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