pub struct EncryptKey(/* private fields */);Expand description
An initialized key which can be used for encrypting.
Implementations§
Source§impl EncryptKey
impl EncryptKey
Sourcepub fn new_128(key: &[u8; 16]) -> Self
pub fn new_128(key: &[u8; 16]) -> Self
Initializes an encryption key from an appropriately sized array of bytes
Sourcepub fn new_256(key: &[u8; 32]) -> Self
pub fn new_256(key: &[u8; 32]) -> Self
Initializes an encryption key from an appropriately sized array of bytes
Sourcepub fn encrypt_in_place(&self, block: &mut Block)
pub fn encrypt_in_place(&self, block: &mut Block)
Replace block with its encrypted version.
Auto Trait Implementations§
impl Freeze for EncryptKey
impl RefUnwindSafe for EncryptKey
impl Send for EncryptKey
impl Sync for EncryptKey
impl Unpin for EncryptKey
impl UnsafeUnpin for EncryptKey
impl UnwindSafe for EncryptKey
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