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