From 3d6c0625acaf753ddae318b964281ad26882cd44 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Tue, 21 Dec 2021 15:57:49 +0100 Subject: [PATCH] Make `Params::block_count()` public (#258) --- argon2/src/params.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/argon2/src/params.rs b/argon2/src/params.rs index 6b52932d..aae03d66 100644 --- a/argon2/src/params.rs +++ b/argon2/src/params.rs @@ -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 } }