lib/crypto/aes.c
Source file repositories/reference/linux-study-clean/lib/crypto/aes.c
File Facts
- System
- Linux kernel
- Corpus path
lib/crypto/aes.c- Extension
.c- Size
- 27266 bytes
- Lines
- 760
- Domain
- Kernel Services
- Bucket
- lib
- Inferred role
- Kernel Services: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Shared kernel service surface used by multiple subsystems, including helpers, cryptography, virtualization support, and async I/O infrastructure.
- Shared kernel service surface used by multiple subsystems, including helpers, cryptography, virtualization support, and async I/O infrastructure.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
crypto/aes-cbc-macs.hcrypto/aes.hcrypto/utils.hlinux/cache.hlinux/crypto.hlinux/export.hlinux/module.hlinux/unaligned.hfips.haes.h
Detected Declarations
function aes_prefetchfunction mul_by_xfunction mul_by_x2function mix_columnsfunction inv_mix_columnsfunction subwfunction aes_expandkey_genericfunction aes_expandkeyfunction enc_quarterroundfunction enclast_quarterroundfunction aes_encrypt_genericfunction dec_quarterroundfunction declast_quarterroundfunction aes_decrypt_genericfunction aes_preparekey_archfunction aes_encrypt_archfunction aes_decrypt_archfunction __aes_preparekeyfunction aes_preparekeyfunction aes_prepareenckeyfunction aes_encryptfunction aes_decryptfunction aes_cbcmac_blocks_archfunction aes_cbcmac_blocksfunction aes_cmac_preparekeyfunction aes_xcbcmac_preparekeyfunction aes_cmac_updatefunction aes_cmac_finalfunction aes_cbcmac_updatefunction aes_cbcmac_finalfunction aes_cmac_fips_testfunction aes_cmac_fips_testfunction aes_mod_exitmodule init aes_mod_initexport crypto_aes_sboxexport crypto_aes_inv_sboxexport aes_enc_tabexport aes_dec_tabexport aes_expandkeyexport aes_preparekeyexport aes_prepareenckeyexport aes_encryptexport aes_decryptexport aes_cmac_preparekeyexport aes_xcbcmac_preparekeyexport aes_cmac_updateexport aes_cmac_final
Annotated Snippet
subsys_initcall(aes_mod_init);
static void __exit aes_mod_exit(void)
{
}
module_exit(aes_mod_exit);
MODULE_DESCRIPTION("AES block cipher");
MODULE_AUTHOR("Ard Biesheuvel <ard.biesheuvel@linaro.org>");
MODULE_AUTHOR("Eric Biggers <ebiggers@kernel.org>");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `crypto/aes-cbc-macs.h`, `crypto/aes.h`, `crypto/utils.h`, `linux/cache.h`, `linux/crypto.h`, `linux/export.h`, `linux/module.h`, `linux/unaligned.h`.
- Detected declarations: `function aes_prefetch`, `function mul_by_x`, `function mul_by_x2`, `function mix_columns`, `function inv_mix_columns`, `function subw`, `function aes_expandkey_generic`, `function aes_expandkey`, `function enc_quarterround`, `function enclast_quarterround`.
- Atlas domain: Kernel Services / lib.
- Implementation status: integration implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.