]> git.ipfire.org Git - thirdparty/nettle.git/commit
Complete rewrite of C implementation of poly1305. poly1305-radix32
authorNiels Möller <nisse@lysator.liu.se>
Tue, 25 Jan 2022 19:06:14 +0000 (20:06 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 25 Jan 2022 19:06:14 +0000 (20:06 +0100)
commit2c0d307d6126c8ff5a6e1e1a2e533d7d492d6ed0
tree6471ca142a8d22c323999552ffd0c491179b1020
parentb7268727a11bce0a350345c2671493d2ddd28b45
Complete rewrite of C implementation of poly1305.

Radix 32 rather than radix 26, and use that certain key bits are
always zero.
* poly1305-internal.c (_nettle_poly1305_set_key): Rewritten.
(_nettle_poly1305_block): Rewritten.
(_nettle_poly1305_digest): Rewritten.
* poly1305.h (struct poly1305_ctx): Rearrange internal unions, but
with size and alignment unchanged.
ChangeLog
poly1305-internal.c
poly1305.h