Trait cipher::stream_core::StreamCipherSeekCore

source ·
pub trait StreamCipherSeekCore: StreamCipherCore {
    type Counter: Counter;

    // Required methods
    fn get_block_pos(&self) -> Self::Counter;
    fn set_block_pos(&mut self, pos: Self::Counter);
}
Expand description

Block-level seeking trait for stream ciphers.

Required Associated Types§

source

type Counter: Counter

Counter type used inside stream cipher.

Required Methods§

source

fn get_block_pos(&self) -> Self::Counter

Get current block position.

source

fn set_block_pos(&mut self, pos: Self::Counter)

Set block position.

Object Safety§

This trait is not object safe.

Implementors§