diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-16 09:40:18 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-16 09:40:18 +0100 |
commit | e6aae71bbc65211a38c466dcce4c3d2961543e9a (patch) | |
tree | 6c5f4b7adaddd199ed2eff7ca27230f8a711ff98 /libar2_hash.c | |
parent | Reference libar2simplified_init_context.3 in libar2_hash.3 (diff) | |
download | libar2-e6aae71bbc65211a38c466dcce4c3d2961543e9a.tar.gz libar2-e6aae71bbc65211a38c466dcce4c3d2961543e9a.tar.bz2 libar2-e6aae71bbc65211a38c466dcce4c3d2961543e9a.tar.xz |
Remove todo
load_block is optimised to a memcpy on little-endian
machines, and argon2_blake2b_exthash must (there are
less desirable alternatives) write to an intermediate
buffer beause it can write beyond the target area
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libar2_hash.c')
-rw-r--r-- | libar2_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libar2_hash.c b/libar2_hash.c index 757dbdf..98c50cb 100644 --- a/libar2_hash.c +++ b/libar2_hash.c @@ -518,7 +518,7 @@ libar2_hash(void *hash, void *msg, size_t msglen, struct libar2_argon2_parameter store32(&hash0[64], 0); store32(&hash0[68], (uint_least32_t)i); argon2_blake2b_exthash(block, 1024, hash0, 72); - load_block(&memory[i * lanelen + 0], block); /* TODO this is a copy function on LE-machines */ + load_block(&memory[i * lanelen + 0], block); store32(&hash0[64], 1); argon2_blake2b_exthash(block, 1024, hash0, 72); |