aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2020-05-04 11:25:17 +0200
committerAndreas Schneider <asn@cryptomilk.org>2020-05-05 14:23:06 +0200
commit0c7a772301cb0ce16cd5ca119472a23695a1c578 (patch)
tree221d14175f4c5cf67d8dc8e82f148b735cc077d7 /src
parentc45cfce166f3eb457357bd842b05c54fbb8872a0 (diff)
downloadlibssh-0c7a772301cb0ce16cd5ca119472a23695a1c578.tar.gz
libssh-0c7a772301cb0ce16cd5ca119472a23695a1c578.tar.xz
libssh-0c7a772301cb0ce16cd5ca119472a23695a1c578.zip
external: Do not confuse new gcc
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r--src/external/bcrypt_pbkdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/external/bcrypt_pbkdf.c b/src/external/bcrypt_pbkdf.c
index 6fb35ff7..2208654d 100644
--- a/src/external/bcrypt_pbkdf.c
+++ b/src/external/bcrypt_pbkdf.c
@@ -87,7 +87,7 @@ bcrypt_hash(uint8_t *sha2pass, uint8_t *sha2salt, uint8_t *out)
cdata[i] = Blowfish_stream2word(ciphertext, sizeof(ciphertext),
&j);
for (i = 0; i < 64; i++)
- ssh_blf_enc(&state, cdata, sizeof(cdata) / sizeof(uint64_t));
+ ssh_blf_enc(&state, cdata, BCRYPT_BLOCKS/2);
/* copy out */
for (i = 0; i < BCRYPT_BLOCKS; i++) {