Skip to content

Commit

Permalink
Make Params::block_count() public (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Dec 21, 2021
1 parent d5a3711 commit 3d6c062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion argon2/src/params.rs
Expand Up @@ -168,7 +168,7 @@ impl Params {
}

/// Get the number of blocks required given the configured `m_cost` and `p_cost`.
pub(crate) fn block_count(&self) -> usize {
pub fn block_count(&self) -> usize {
(self.segment_length() * self.p_cost * SYNC_POINTS) as usize
}
}
Expand Down

0 comments on commit 3d6c062

Please sign in to comment.