Use the newly stabilized div_ceil

Sets a msrv of 1.73.0.
This commit is contained in:
Luke Parker
2023-10-05 14:27:59 -04:00
parent 4ee65ed243
commit 9cdca1d3d6
4 changed files with 4 additions and 13 deletions

View File

@@ -149,7 +149,7 @@ where
// block_size returns the block_size in bytes
// Use a ceil div in case the block size isn't evenly divisible by our word size
let words = (D::block_size() + (WORD_SIZE - 1)) / WORD_SIZE;
let words = D::block_size().div_ceil(WORD_SIZE);
for _ in 0 .. (2 * words) {
self.0.update([255; WORD_SIZE]);
}