By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: The Linux Kernel’s SHA-256 Code Being Improved Upon For Easier & Performant Use
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > The Linux Kernel’s SHA-256 Code Being Improved Upon For Easier & Performant Use
Computing

The Linux Kernel’s SHA-256 Code Being Improved Upon For Easier & Performant Use

News Room
Last updated: 2025/04/27 at 7:16 AM
News Room Published 27 April 2025
Share
SHARE

The SHA-256 code within the Linux kernel’s cryptography subsystem is in the process of being refactoring so that it’s available via the crypto’s library API and also opening it up to support architecture-optimized implementations.

Eric Biggers of Google who has been responsible for many of the crypto performance optimizations in recent years to the kernel, especially for x86_64 processors and making use of modern ISA features, has been pursuing this SHA256 refactoring so it’s suitable for library use and opening the door to architecture-optimized versions.

Biggers explains in the new patch series posted by crypto maintainer Herbert Xu:

“Following the example of several other algorithms (e.g. CRC32, ChaCha, Poly1305, BLAKE2s), this series refactors the kernel’s existing architecture-optimized SHA-256 code to be available via the library API, instead of just via the crypto_shash API as it was before. It also reimplements the SHA-256 crypto_shash API on top of the library API.

This makes it possible to use the SHA-256 library in performance-critical cases. The new design is also much simpler, with a negative diffstat of over 1200 lines. Finally, this also fixes the longstanding issue where the arch-optimized SHA-256 was disabled by default, so people often forgot to enable it.

For now the SHA-256 library is well-covered by the crypto_shash self-tests, but I plan to add a test for the library directly later. I’ve fully tested this series on arm, arm64, riscv, and x86. On mips, powerpc, s390, and sparc I’ve only been able to partially test it, since QEMU does not support the SHA-256 instructions on those platforms. If anyone with access to a mips, powerpc, s390, or sparc system that has SHA-256 instructions can verify that the crypto self-tests still pass, that would be appreciated. But I don’t expect any issues, especially since the new code is more straightforward than the old code.”

A nice refactoring at +1165 lines of code and -2313 lines… All the while adding support for architecture-optimized implementations and adding it to the library API. The code is currently under review but will hopefully be ready for upstreaming in an upcoming kernel cycle.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Transform Your Note Taking Forever With This $40 App
Next Article Bishop Takes Rook: You'll Be Able to Learn Chess on Duolingo Soon
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Experts Say These Are the Best Foods for Headaches
News
Huawei-backed EV maker Aito outsold Li Auto in June · TechNode
Computing
How Military Companies in UAE Are Driving Technological Advancements in Defense
Gadget
The Promise and Peril of Digital Security in the Age of Dictatorship
Gadget

You Might also Like

Computing

Huawei-backed EV maker Aito outsold Li Auto in June · TechNode

5 Min Read
Computing

Semicon China 2025 – The Rise of SiCarrier · TechNode

6 Min Read
Computing

How to Make Your Products Stand Out in a Crowded Online Market

16 Min Read
Computing

TSMC completes risk production of 2nm process with 5,000 wafers · TechNode

3 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?