Linux 4.4 Crypto Brings Optimized SHA1/SHA256 Intel SHA Extensions

Written by Michael Larabel in Linux Kernel on 2 November 2015 at 08:33 AM EST. 4 Comments
LINUX KERNEL
Herbert Xu mailed in the crypto subsystem updates this morning for the Linux 4.4 merge window.

The Linux 4.4 Crypto update brings a new wrap algorithm, a few API changes, alterations to the akcipher interfacem Intel SHA Extension SHA1 and SHA256 optimized functions, support for the ST and STM32 RNGs, support for the mxs-dcp crypto device, and other crypto driver improvements.

Intel SHA Extensions are an instruction set extension for hardware acceleration of the SHA family. Initial support for these SHA extensions were added with Skylake processors with a total of seven instructions between SHA1 and SHA256. With Linux 4.4, the new crypto code is providing optimized support for SHA1 and SHA256.

In terms of the performance gain for using the Intel SHA Extensions, it's reported, "For 4K data blocks, we've seen up to 3.6x speedup over existing SSSE3 enhanced routines in the kernel crypto library on Broxton platform."

This 4.4 crypto pull doesn't land the work talked about last week: Intel Is Working On Faster Linux Encryption For AVX2 CPUs, Up To 5.8x Throughput. It looks like that will have to wait until at least Linux 4.5.

More details on the 4.4 crypto update via the pull request.
Related News
About The Author
Michael Larabel

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.

Popular News This Week