1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

scrypt_nosse: no need to use void * in integerify()

This commit is contained in:
Frank Denis 2023-08-31 23:08:56 +02:00
parent a3f200abe6
commit 30212c0952

View File

@ -163,9 +163,9 @@ blockmix_salsa8(const uint32_t *Bin, uint32_t *Bout, uint32_t *X, size_t r)
* Return the result of parsing B_{2r-1} as a little-endian integer.
*/
static inline uint64_t
integerify(const void *B, size_t r)
integerify(const uint32_t *B, size_t r)
{
const uint32_t *X = ((const uint32_t *) B) + (2 * r - 1) * 16;
const uint32_t *X = B + (2 * r - 1) * 16;
return ((uint64_t) (X[1]) << 32) + X[0];
}