Linux Patches Speed-Up Kernel Crypto Functions With RISC-V Vector Extensions

Written by Michael Larabel in RISC-V on 28 October 2023 at 06:40 AM EDT. 2 Comments
RISC-V
Patches posted this week by SiFive for the Linux kernel provide cryptographic implementations of various functions inside the Linux kernel using the processor ISA's vector crypto extensions.

The patches are intended to speed-up various Linux kernel crypto operations by leveraging the vector instructions with the RISC-V Cryptography Extensions. These vector instructions for the RISC-V Cryptography Extensions are documented via the riscv-crypto repository.

The 12 patches posted this week accelerate AES cipher, AES with CBC/CTR/ECB/XTS block modes, ChaCha20 stream cipher, GHASH for GCM, SHA-224/256 and SHA-384/512 hash, SM3 hash, and SM4 cipher.

RISC-V kernel crypto patches


Those interested in this work for speeding up kernel crypto operations with the RISC-V Crypto Vector instructions can see this patch series for all the details.
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