VOOZH about

URL: https://www.phoronix.com/news/Linux-POLYVAL-More-Crypto-Perf

⇱ POLYVAL Work Bringing More Performance Gains To Linux Crypto Subsystem - Phoronix


👁 Phoronix

POLYVAL Work Bringing More Performance Gains To Linux Crypto Subsystem

Written by Michael Larabel in Linux Kernel on 10 November 2025 at 06:07 AM EST. 3 Comments
Whenever seeing Linux kernel mailing list patches from Google engineer Eric Biggers it tends to be about performance optimizations to the Linux kernel's cryptography subsystem. That was once again the case on Sunday with the newest patch series providing some nice gains.

A set of nine patches were sent out by Biggers to migrate the POLYVAL code to the lib/crypto area of the kernel and to replace a generic implementation of POLYVAL with a superior implementation.

The key takeaway from this work:
"Notably, this series improves the performance of HCTR2, since it eliminates unnecessary overhead that was being incurred by accessing POLYVAL via the crypto_shash API. I see a 45% increase in throughput with 64-byte messages, 53% with 128-byte, or 6% with 4096-byte.

It also eliminates the need to explicitly enable the optimized POLYVAL code, as it's now enabled automatically when HCTR2 support is enabled."

👁 POLYVAL improved implementation benchmarks


So a nice win from this patch series now under review for potentially making it into the next version of the Linux kernel.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.