]> git.codecow.com Git - Monocypher.git/commit
Fix Argon2 multiple lanes bug
authorLoup Vaillant <loup@loup-vaillant.fr>
Thu, 27 Jul 2023 10:36:13 +0000 (12:36 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Thu, 27 Jul 2023 10:36:13 +0000 (12:36 +0200)
commit50b1e0f274a1493ac3aac3965fad66e544187666
tree4cf390b4562bd2d525c0ae3d4aa1721bfb1027a9
parent3f9f5470fde35f603939215644673a223a55379e
Fix Argon2 multiple lanes bug

Argon2 failed to conform to the reference implementation when used with
multiple lanes, rendering it useless for this compatibility use case.
The error came from the way we select the reference set:

- On the first slice of the first pass, only the current lane is valid.
- When selecting other lanes, only fully completed segments are valid.
- The previous block of *all* lanes must be excluded.

Fixes #263
src/monocypher.c
tests/gen/vectors/argon2