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