pub struct Aes128 { /* private fields */ }
Expand description
128 bit variant of the Advanced Encryption Standard (AES, formerly RIJNDAEL) defined in FIPS 197.
Implementations§
Trait Implementations§
source§impl Cipher for Aes128
impl Cipher for Aes128
source§const BLOCK_SIZE: usize = 16usize
const BLOCK_SIZE: usize = 16usize
Block size in bytes.
source§fn with_encrypt_key(key: &[u8]) -> Result<Aes128>
fn with_encrypt_key(key: &[u8]) -> Result<Aes128>
Creates a new cipher instance for encryption. Read more
source§fn with_decrypt_key(key: &[u8]) -> Result<Aes128>
fn with_decrypt_key(key: &[u8]) -> Result<Aes128>
Creates a new cipher instance for decryption. Read more
source§fn context(&mut self) -> *mut c_void
fn context(&mut self) -> *mut c_void
Returns a pointer to the C context struct of the cipher instance. Read more
source§fn raw_encrypt_function() -> RawCipherFunctionPointer
fn raw_encrypt_function() -> RawCipherFunctionPointer
Pointer to the *_encrypt C function. Read more
source§fn raw_decrypt_function() -> RawCipherFunctionPointer
fn raw_decrypt_function() -> RawCipherFunctionPointer
Pointer to the *_decrypt C function. Read more
impl BlockSizeIs16 for Aes128
Auto Trait Implementations§
impl RefUnwindSafe for Aes128
impl Send for Aes128
impl Sync for Aes128
impl Unpin for Aes128
impl UnwindSafe for Aes128
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