]> git.codecow.com Git - Monocypher.git/commit
Cosmetic/consistency in Argon2i
authorLoup Vaillant <loup@loup-vaillant.fr>
Sat, 11 Jan 2020 12:59:09 +0000 (13:59 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sat, 11 Jan 2020 13:15:02 +0000 (14:15 +0100)
commita3cb781cdf3f20d570dea311aa44a4059b156b24
tree08a505b9856c367c050f28842eaf5b34427489c7
parented0486e42ed7decc2555e6d70e7e1a7569f0a1ad
Cosmetic/consistency in Argon2i

The functions g_copy() and g_xor() both take a pointer to a temporary,
to avoid wiping them again and again. unary_g(), however, did not, and
instead managed its temporary block internally.

Since unary_g() is called less often, this is not really a problem. I
thought it would be cleaner however to have all three functions work the
same way.

This should have a negligible, positive impact on performance as well.
src/monocypher.c