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§
Required Methods§
Sourcefn get_block_pos(&self) -> Self::Counter
fn get_block_pos(&self) -> Self::Counter
Get current block position.
Sourcefn set_block_pos(&mut self, pos: Self::Counter)
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.