OPPO Kernel Craftsman
Jul 10, 2020 · Information Security
Linux Kernel Crypto Framework: Architecture, Data Structures, and Application in File System Encryption
The Linux kernel’s generic crypto framework, introduced in version 2.5.45, defines core structures such as crypto_template, crypto_alg, crypto_instance and crypto_tfm to dynamically register and combine algorithms (e.g., ecb(aes)), providing a uniform API for symmetric, asymmetric, hash and other primitives, supporting user‑space access via AF_ALG and practical use cases like Android file‑based encryption with built‑in self‑tests for correctness.
Linux kernelSelf-testalgorithm registration
0 likes · 11 min read