]> git.ipfire.org Git - thirdparty/tor.git/commit
Add support for pre-expanded polyval keys with pclmul.
authorNick Mathewson <nickm@torproject.org>
Thu, 15 May 2025 14:49:55 +0000 (10:49 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 21 May 2025 17:00:03 +0000 (13:00 -0400)
commit17159a05c1c64cba63cbcc3e6085746649e124a0
tree82f0341510fd17cde9be3a6637ca4da818b14b9b
parent110d20790a79123ae8f8371b49ac138d6c35eeaf
Add support for pre-expanded polyval keys with pclmul.

We don't want to do this without pclmul, since it doesn't help in that case.

We don't want to do this unconditionally, since many of our polyval keys
are only used for 16 byte inputs.

(Yes, this makes a difference in practice!)
src/ext/polyval/pclmul.c
src/ext/polyval/polyval.c
src/ext/polyval/polyval.h
src/test/bench.c
src/test/test_crypto.c