]> git.codecow.com Git - Monocypher.git/commit
Rearranged Chacha20 initialisation
authorLoup Vaillant <loup@loup-vaillant.fr>
Sat, 17 Jul 2021 19:10:40 +0000 (21:10 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sat, 17 Jul 2021 19:10:40 +0000 (21:10 +0200)
commitded09ab25a67f4d2af82a8307467da7030de1fbb
tree913d0a389094c7cf0e46903eab3ae1b2eb7faa43
parent11bb1f6a8e6c70bd39ff55fb2701d6ba99ce062c
Rearranged Chacha20 initialisation

The init_key function was too short to justify itself.
It was used only twice, so I inlined it, and saved 2 SLoC.

This also had the effect of making the init code more systematic,
and I believe more readable as well.
src/monocypher.c