]> git.codecow.com Git - Monocypher.git/commit
Optimised key loading in Blake2b
authorLoup Vaillant <loup@loup-vaillant.fr>
Mon, 8 Jun 2020 15:46:16 +0000 (17:46 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Mon, 8 Jun 2020 21:38:06 +0000 (23:38 +0200)
commit0f94c014ef4334f9d792f4af58b108652847e68a
treeb1eab1668d7aa7d36a109ef54d7b3b48552688dc
parent3b01e7fe87ebb4c826ae0cda362354841820da70
Optimised key loading in Blake2b

The idea is to avoid the slow loading code in the internal
blake2b_update() function, and avoid the overhead of calling
crypto_blake2b_update().

It's a micro-optimisation that in principle shouldn't matter that much,
but it might help a bit if we repeatedly hash small messages with a key,
as can happen in authenticated key exchanges like Monokex.
src/monocypher.c