News › security

Linux Kernel Moves to Remove crypto_rng Abstraction Layer

By Zayden R., July 28, 2026

The Linux kernel's crypto_rng abstraction layer is set for removal, following AF_ALG's deprecation. This change aims to streamline the kernel's cryptographic code, impacting developers who rely on this layer.

The Linux kernel is once again undergoing significant changes as the crypto_rng abstraction layer is set for removal. This decision follows the recent deprecation and reduction of the AF_ALG code, marking a continued effort to streamline the kernel's cryptographic components. For those involved in Linux kernel development, this is a notable shift.

The crypto_rng abstraction layer has been part of the kernel's crypto code, providing a unified interface for random number generation. However, the ongoing effort to clean up and simplify kernel code has put this layer on the chopping block. Developers who have relied on the crypto_rng for their random number generation needs will need to adapt to this upcoming change.

The removal is not just about simplifying the codebase; it also aligns with the broader goal of reducing unnecessary abstractions within the kernel. By eliminating the crypto_rng layer, the kernel developers aim to improve maintainability and performance. This change will require developers to adjust their codebases, potentially moving towards more direct methods of accessing cryptographic functions.

While the removal of the crypto_rng abstraction layer might seem minor in the grand scheme of kernel development, it underscores a larger trend towards efficiency and simplicity. It also serves as a reminder of the importance of staying current with kernel developments, as these changes can have a cascading impact on software that relies on specific kernel functionalities.

Sources

Courses