Trait cipher::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§
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.
Object Safety§
This trait is not object safe.