Struct aesni::Aes256Ctr [−][src]
pub struct Aes256Ctr { /* fields omitted */ }
AES-256 in CTR mode
Trait Implementations
impl Clone for Aes256Ctr
[src]
impl Clone for Aes256Ctr
fn clone(&self) -> Aes256Ctr
[src]
fn clone(&self) -> Aes256Ctr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl NewFixStreamCipher for Aes256Ctr
[src]
impl NewFixStreamCipher for Aes256Ctr
type KeySize = <Aes256 as BlockCipher>::KeySize
Key size in bytes
type NonceSize = U16
Nonce size in bytes
fn new(
key: &GenericArray<u8, Self::KeySize>,
nonce: &GenericArray<u8, Self::NonceSize>
) -> Self
[src]
fn new(
key: &GenericArray<u8, Self::KeySize>,
nonce: &GenericArray<u8, Self::NonceSize>
) -> Self
Create new stream cipher instance
impl StreamCipherCore for Aes256Ctr
[src]
impl StreamCipherCore for Aes256Ctr
fn try_apply_keystream(&mut self, data: &mut [u8]) -> Result<(), LoopError>
[src]
fn try_apply_keystream(&mut self, data: &mut [u8]) -> Result<(), LoopError>
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])
Apply keystream to the data. Read more
impl StreamCipherSeek for Aes256Ctr
[src]
impl StreamCipherSeek for Aes256Ctr
fn current_pos(&self) -> u64
[src]
fn current_pos(&self) -> u64
Return current position of a keystream in bytes from the beginning.
fn seek(&mut self, pos: u64)
[src]
fn seek(&mut self, pos: u64)
Seek keystream to the given pos
in bytes.
impl Debug for Aes256Ctr
impl Debug for Aes256Ctr