[][src]Trait aesni::stream::SyncStreamCipherSeek

pub trait SyncStreamCipherSeek {
    fn try_current_pos<T>(&self) -> Result<T, OverflowError>
    where
        T: SeekNum
;
fn try_seek<T>(&mut self, pos: T) -> Result<(), LoopError>
    where
        T: SeekNum
; fn current_pos<T>(&self) -> T
    where
        T: SeekNum
, { ... }
fn seek<T>(&mut self, pos: T)
    where
        T: SeekNum
, { ... } }

Trait for seekable stream ciphers.

Methods of this trait are generic over the SeekNum trait, which is implemented for primitive numeric types, i.e.: i/u8, i/u16, i/u32, i/u64, i/u128, and i/usize.

Required methods

fn try_current_pos<T>(&self) -> Result<T, OverflowError> where
    T: SeekNum

Try to get current keystream position

Returns LoopError if position can not be represented by type T

fn try_seek<T>(&mut self, pos: T) -> Result<(), LoopError> where
    T: SeekNum

Try to seek to the given position

Returns LoopError if provided position value is bigger than keystream leangth

Loading content...

Provided methods

fn current_pos<T>(&self) -> T where
    T: SeekNum

Get current keystream position

Panics

If position can not be represented by type T

fn seek<T>(&mut self, pos: T) where
    T: SeekNum

Seek to the given position

Panics

If provided position value is bigger than keystream leangth

Loading content...

Implementors

impl SyncStreamCipherSeek for Aes128Ctr[src]

impl SyncStreamCipherSeek for Aes192Ctr[src]

impl SyncStreamCipherSeek for Aes256Ctr[src]

Loading content...