diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-13 01:31:17 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-13 01:31:21 +0100 |
commit | d8ebedf1acc79cc27ecdeb5d6113e5c340248723 (patch) | |
tree | 966002e9a08cce36fe9082b5eb101226715f0a3f /libar2_hash.c | |
parent | Bug fix (diff) | |
download | libar2-d8ebedf1acc79cc27ecdeb5d6113e5c340248723.tar.gz libar2-d8ebedf1acc79cc27ecdeb5d6113e5c340248723.tar.bz2 libar2-d8ebedf1acc79cc27ecdeb5d6113e5c340248723.tar.xz |
Bug fix
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libar2_hash.c')
-rw-r--r-- | libar2_hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libar2_hash.c b/libar2_hash.c index 2a800aa..6ce898c 100644 --- a/libar2_hash.c +++ b/libar2_hash.c @@ -574,10 +574,10 @@ libar2_hash(void *hash, void *msg, size_t msglen, struct libar2_argon2_parameter goto fail; ti = 0; } - tparams[ti].pass = (uint_least32_t)p; - tparams[ti].lane = (uint_least32_t)i; - tparams[ti].slice = (uint_least32_t)s; - if (ctx->run_thread(ts[ti], threaded_fill_segment, &tparams[ti], ctx)) + tparams[ts[ti]].pass = (uint_least32_t)p; + tparams[ts[ti]].lane = (uint_least32_t)i; + tparams[ts[ti]].slice = (uint_least32_t)s; + if (ctx->run_thread(ts[ti], threaded_fill_segment, &tparams[ts[ti]], ctx)) goto fail; ti++; } |