Skip to content
Open
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
2 changes: 1 addition & 1 deletion scrypt/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl Params {
// check: p <= ((2^32-1) * 32) / (128 * r)
// It takes a bit of re-arranging to get the check above into this form,
// but it is indeed the same.
if r * p >= 0x4000_0000 {
if u64::from(r) * u64::from(p) >= 0x4000_0000 {
return Err(InvalidParams);
}

Expand Down