pub struct Aes128CbcImpl;Expand description
The global Aes128Cbc implementation.
Implementations§
Source§impl Aes128CbcImpl
impl Aes128CbcImpl
Sourcepub fn encrypt_init(
key: &[u8; 16],
iv: &[u8; 16],
) -> Aes128CbcImplEncryptContext
pub fn encrypt_init( key: &[u8; 16], iv: &[u8; 16], ) -> Aes128CbcImplEncryptContext
Initialize encryptor with a 128-bit key and 128-bit IV.
Sourcepub fn decrypt_init(
key: &[u8; 16],
iv: &[u8; 16],
) -> Aes128CbcImplDecryptContext
pub fn decrypt_init( key: &[u8; 16], iv: &[u8; 16], ) -> Aes128CbcImplDecryptContext
Initialize decryptor with a 128-bit key and 128-bit IV.
Sourcepub fn encrypt_blocks(
ctx: &mut Aes128CbcImplEncryptContext,
blocks: InOutBuf<'_, '_, u8>,
)
pub fn encrypt_blocks( ctx: &mut Aes128CbcImplEncryptContext, blocks: InOutBuf<'_, '_, u8>, )
Encrypt 16-byte blocks in-place (updates internal chaining state).
Sourcepub fn decrypt_blocks(
ctx: &mut Aes128CbcImplDecryptContext,
blocks: InOutBuf<'_, '_, u8>,
)
pub fn decrypt_blocks( ctx: &mut Aes128CbcImplDecryptContext, blocks: InOutBuf<'_, '_, u8>, )
Decrypt 16-byte blocks in-place (updates internal chaining state).
Trait Implementations§
Source§impl Aes128Cbc for Aes128CbcImpl
impl Aes128Cbc for Aes128CbcImpl
Source§type EncryptContext = Aes128CbcImplEncryptContext
type EncryptContext = Aes128CbcImplEncryptContext
Opaque storage for the encryptor’s key schedule and chaining state.
Source§type DecryptContext = Aes128CbcImplDecryptContext
type DecryptContext = Aes128CbcImplDecryptContext
Opaque storage for the decryptor’s key schedule and chaining state.
Source§fn encrypt_init(key: &[u8; 16], iv: &[u8; 16]) -> Aes128CbcImplEncryptContext
fn encrypt_init(key: &[u8; 16], iv: &[u8; 16]) -> Aes128CbcImplEncryptContext
Initialize encryptor with a 128-bit key and 128-bit IV.
Source§fn decrypt_init(key: &[u8; 16], iv: &[u8; 16]) -> Aes128CbcImplDecryptContext
fn decrypt_init(key: &[u8; 16], iv: &[u8; 16]) -> Aes128CbcImplDecryptContext
Initialize decryptor with a 128-bit key and 128-bit IV.
Source§fn encrypt_blocks(
ctx: &mut Aes128CbcImplEncryptContext,
blocks: InOutBuf<'_, '_, u8>,
)
fn encrypt_blocks( ctx: &mut Aes128CbcImplEncryptContext, blocks: InOutBuf<'_, '_, u8>, )
Encrypt 16-byte blocks in-place (updates internal chaining state).
Source§fn decrypt_blocks(
ctx: &mut Aes128CbcImplDecryptContext,
blocks: InOutBuf<'_, '_, u8>,
)
fn decrypt_blocks( ctx: &mut Aes128CbcImplDecryptContext, blocks: InOutBuf<'_, '_, u8>, )
Decrypt 16-byte blocks in-place (updates internal chaining state).
Auto Trait Implementations§
impl Freeze for Aes128CbcImpl
impl RefUnwindSafe for Aes128CbcImpl
impl Send for Aes128CbcImpl
impl Sync for Aes128CbcImpl
impl Unpin for Aes128CbcImpl
impl UnsafeUnpin for Aes128CbcImpl
impl UnwindSafe for Aes128CbcImpl
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