Skip to content

Commit 7726f5c

Browse files
committed
pwdbased: fix cast warning.
1 parent 3e39a5c commit 7726f5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/pwdbased.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ int wc_scrypt(byte* output, const byte* passwd, int passLen,
837837
ForceZero(v, ((size_t)1 << cost) * (size_t)bSz);
838838
}
839839
if (y != NULL) {
840-
ForceZero(y, (size_t)(blockSize * 128));
840+
ForceZero(y, (size_t)blockSize * 128);
841841
}
842842

843843
XFREE(blocks, NULL, DYNAMIC_TYPE_TMP_BUFFER);

0 commit comments

Comments
 (0)