From 90447b0283f864ec818036229c36ceb48dbfb3a1 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 15 Feb 2015 22:37:59 +0100 Subject: [PATCH] scrypt: keep r as a size_t value --- .../nosse/pwhash_scryptsalsa208sha256_nosse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c b/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c index 97d3701a..128b6a13 100644 --- a/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c +++ b/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c @@ -67,7 +67,7 @@ blkxor_64(escrypt_block_t *dest, const escrypt_block_t *src) } static inline void -blkcpy(escrypt_block_t *dest, const escrypt_block_t *src, int len) +blkcpy(escrypt_block_t *dest, const escrypt_block_t *src, size_t len) { int i, L; #if (ARCH_BITS==32) @@ -82,7 +82,7 @@ blkcpy(escrypt_block_t *dest, const escrypt_block_t *src, int len) } static inline void -blkxor(escrypt_block_t *dest, const escrypt_block_t *src, int len) +blkxor(escrypt_block_t *dest, const escrypt_block_t *src, size_t len) { int i, L; #if (ARCH_BITS==32)