Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions chacha20/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,17 @@ impl<R: Rounds, V: Variant> ChaChaCore<R, V> {
}
}

/// Get the current block position.
#[cfg(any(feature = "cipher", feature = "rng"))]
#[inline(always)]
fn get_block_pos(&self) -> V::Counter {
pub fn get_block_pos(&self) -> V::Counter {
V::get_block_pos(&self.state[12..])
}

/// Set the block position.
#[cfg(any(feature = "cipher", feature = "rng"))]
#[inline(always)]
fn set_block_pos(&mut self, pos: V::Counter) {
pub fn set_block_pos(&mut self, pos: V::Counter) {
V::set_block_pos(&mut self.state[12..], pos);
}
}
Expand Down