Struct aes::Aes128Ctr [−][src]
pub struct Aes128Ctr { /* fields omitted */ }
This is supported on crate feature
ctr
only.AES-128 in CTR mode
Trait Implementations
impl FromBlockCipher for Aes128Ctr
[src]
impl FromBlockCipher for Aes128Ctr
[src]type BlockCipher = Aes128
type BlockCipher = Aes128
Block cipher
type NonceSize = <Aes128 as BlockCipher>::BlockSize
type NonceSize = <Aes128 as BlockCipher>::BlockSize
Nonce size in bytes
fn from_block_cipher(
cipher: Aes128,
nonce: &GenericArray<u8, Self::NonceSize>
) -> Self
[src]
fn from_block_cipher(
cipher: Aes128,
nonce: &GenericArray<u8, Self::NonceSize>
) -> Self
[src]Instantiate a stream cipher from a block cipher
impl StreamCipher for Aes128Ctr
[src]
impl StreamCipher for Aes128Ctr
[src]fn try_apply_keystream(&mut self, data: &mut [u8]) -> Result<(), LoopError>
[src]
fn try_apply_keystream(&mut self, data: &mut [u8]) -> Result<(), LoopError>
[src]Apply keystream to the data, but return an error if end of a keystream will be reached. Read more
fn apply_keystream(&mut self, data: &mut [u8])
[src]
fn apply_keystream(&mut self, data: &mut [u8])
[src]Apply keystream to the data. Read more
impl StreamCipherSeek for Aes128Ctr
[src]
impl StreamCipherSeek for Aes128Ctr
[src]fn try_current_pos<T: SeekNum>(&self) -> Result<T, OverflowError>
[src]
fn try_current_pos<T: SeekNum>(&self) -> Result<T, OverflowError>
[src]Try to get current keystream position Read more
fn try_seek<T: SeekNum>(&mut self, pos: T) -> Result<(), LoopError>
[src]
fn try_seek<T: SeekNum>(&mut self, pos: T) -> Result<(), LoopError>
[src]Try to seek to the given position Read more
fn current_pos<T>(&self) -> T where
T: SeekNum,
[src]
fn current_pos<T>(&self) -> T where
T: SeekNum,
[src]Get current keystream position Read more
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self