
The Linux Crypto API for user applications
5/11/2023
This post introduces the Linux Kernel Crypto API as a mechanism for user applications to leverage kernel-level cryptographic operations. It details how to interact with the API via system calls, discover supported algorithms and drivers from /proc/crypto, and select optimized implementations (e.g., AES-NI). The post also benchmarks AES-CTR encryption performance using the kernel API against OpenSSL, highlighting the potential benefits and overheads of kernel-space cryptography. It discusses the integration with the Linux Kernel Key Retention Service for secure key management and explores the zero-copy interface for efficient data handling.


