pub struct Aes256EcbImpl;Expand description
The global Aes256Ecb implementation.
Implementations§
Source§impl Aes256EcbImpl
impl Aes256EcbImpl
Sourcepub fn init(key: &[u8; 32]) -> Aes256EcbImplContext
pub fn init(key: &[u8; 32]) -> Aes256EcbImplContext
Initialize with a 256-bit key.
Sourcepub fn encrypt_blocks(ctx: &Aes256EcbImplContext, blocks: InOutBuf<'_, '_, u8>)
pub fn encrypt_blocks(ctx: &Aes256EcbImplContext, blocks: InOutBuf<'_, '_, u8>)
Encrypt 16-byte blocks in-place.
Sourcepub fn decrypt_blocks(ctx: &Aes256EcbImplContext, blocks: InOutBuf<'_, '_, u8>)
pub fn decrypt_blocks(ctx: &Aes256EcbImplContext, blocks: InOutBuf<'_, '_, u8>)
Decrypt 16-byte blocks in-place.
Trait Implementations§
Source§impl Aes256Ecb for Aes256EcbImpl
impl Aes256Ecb for Aes256EcbImpl
Source§type Context = Aes256EcbImplContext
type Context = Aes256EcbImplContext
Opaque storage for the implementation’s key schedule.
Source§fn encrypt_blocks(ctx: &Aes256EcbImplContext, blocks: InOutBuf<'_, '_, u8>)
fn encrypt_blocks(ctx: &Aes256EcbImplContext, blocks: InOutBuf<'_, '_, u8>)
Encrypt 16-byte blocks in-place.
Source§fn decrypt_blocks(ctx: &Aes256EcbImplContext, blocks: InOutBuf<'_, '_, u8>)
fn decrypt_blocks(ctx: &Aes256EcbImplContext, blocks: InOutBuf<'_, '_, u8>)
Decrypt 16-byte blocks in-place.
Auto Trait Implementations§
impl Freeze for Aes256EcbImpl
impl RefUnwindSafe for Aes256EcbImpl
impl Send for Aes256EcbImpl
impl Sync for Aes256EcbImpl
impl Unpin for Aes256EcbImpl
impl UnsafeUnpin for Aes256EcbImpl
impl UnwindSafe for Aes256EcbImpl
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