aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-10-19 13:48:41 +0300
committerCem Keylan <cem@ckyln.com>2020-10-19 13:48:41 +0300
commit41978314f8e2d1e9b62cfa207db1bdd371133c62 (patch)
treeaf525ba574d71c0ea42ecd976849976cee13b19e
parent75666cb76815ffd35a30153c6cabc53601e9e2de (diff)
downloadotools-41978314f8e2d1e9b62cfa207db1bdd371133c62.tar.gz
bcrypt_pbkdf.c: update to 6.8
-rw-r--r--lib/libutil/bcrypt_pbkdf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/bcrypt_pbkdf.c b/lib/libutil/bcrypt_pbkdf.c
index e937194..1b04645 100644
--- a/lib/libutil/bcrypt_pbkdf.c
+++ b/lib/libutil/bcrypt_pbkdf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bcrypt_pbkdf.c,v 1.15 2019/11/21 16:13:39 tedu Exp $ */
+/* $OpenBSD: bcrypt_pbkdf.c,v 1.16 2020/08/02 18:35:48 tb Exp $ */
/*
* Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
*
@@ -79,7 +79,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++)
- blf_enc(&state, cdata, sizeof(cdata) / sizeof(uint64_t));
+ blf_enc(&state, cdata, BCRYPT_WORDS / 2);
/* copy out */
for (i = 0; i < BCRYPT_WORDS; i++) {