]> git.codecow.com Git - Monocypher.git/commit
Poly1305: simplified input loading
authorLoup Vaillant <loup@loup-vaillant.fr>
Sun, 18 Jul 2021 10:09:17 +0000 (12:09 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sun, 18 Jul 2021 10:09:17 +0000 (12:09 +0200)
commited7a3ea47dfd64962c37c513a9bc2d80bf647c53
tree813e8be6455b0957523b5cdd22acf1036e56b5b5
parent8680b35431eff36439c633e8e295bd1491808741
Poly1305: simplified input loading

The trick is to parse the input bytes into words at the last moment.
This simplifies incremental loading, and saves around 10 lines of code.
The performance impact is barely measurable.
src/monocypher.c
src/monocypher.h