guru/app-crypt/reop/files/reop-2.1.1-bcrypt_hash-cdata-sizeof.patch
Haelwenn (lanodan) Monnier 1fd7313bb6
app-crypt/reop: Modern-C fixes
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2024-07-11 01:48:00 +02:00

12 lines
414 B
Diff

--- a/other/other.c
+++ b/other/other.c
@@ -659,7 +659,7 @@ bcrypt_hash(u_int8_t *sha2pass, u_int8_t *sha2salt, u_int8_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, sizeof(cdata) / sizeof(uint32_t));
/* copy out */
for (i = 0; i < BCRYPT_BLOCKS; i++) {