pub struct Aes256 { /* private fields */ }Expand description
AES-256 (14 rounds, 256-bit key).
Trait Implementations§
Source§impl BlockCipher for Aes256
impl BlockCipher for Aes256
Source§fn new(key: &[u8]) -> Self
fn new(key: &[u8]) -> Self
Initialise the cipher with a key. The key length must be one of
the values listed in
Self::KEY_LENS.Source§fn encrypt_block(&self, block: &mut [u8])
fn encrypt_block(&self, block: &mut [u8])
Encrypt
block in place. The slice must be at least
Self::BLOCK_LEN bytes long.Source§fn decrypt_block(&self, block: &mut [u8])
fn decrypt_block(&self, block: &mut [u8])
Decrypt
block in place. The slice must be at least
Self::BLOCK_LEN bytes long.Auto Trait Implementations§
impl Freeze for Aes256
impl RefUnwindSafe for Aes256
impl Send for Aes256
impl Sync for Aes256
impl Unpin for Aes256
impl UnsafeUnpin for Aes256
impl UnwindSafe for Aes256
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