pub trait Aes128Ecb {
type Context: Clone;
// Required methods
fn init(key: &[u8; 16]) -> Self::Context;
fn encrypt_blocks(ctx: &Self::Context, blocks: InOutBuf<'_, '_, u8>);
fn decrypt_blocks(ctx: &Self::Context, blocks: InOutBuf<'_, '_, u8>);
}Expand description
AES-128 ECB block cipher trait.
Required Associated Types§
Required Methods§
Sourcefn encrypt_blocks(ctx: &Self::Context, blocks: InOutBuf<'_, '_, u8>)
fn encrypt_blocks(ctx: &Self::Context, blocks: InOutBuf<'_, '_, u8>)
Encrypt 16-byte blocks in-place.
Sourcefn decrypt_blocks(ctx: &Self::Context, blocks: InOutBuf<'_, '_, u8>)
fn decrypt_blocks(ctx: &Self::Context, blocks: InOutBuf<'_, '_, u8>)
Decrypt 16-byte blocks in-place.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".