Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

impl StreamCipherSeekCore for ChaCha20LegacyCore

impl<R: Unsigned> StreamCipherSeekCore for ChaChaCore<R>

impl<R: Unsigned> StreamCipherSeekCore for XChaChaCore<R>