crypto/authenc.c
Source file repositories/reference/linux-study-clean/crypto/authenc.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/authenc.c- Extension
.c- Size
- 12953 bytes
- Lines
- 455
- Domain
- Kernel Services
- Bucket
- crypto
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
crypto/internal/aead.hcrypto/internal/hash.hcrypto/internal/skcipher.hcrypto/authenc.hcrypto/scatterwalk.hlinux/err.hlinux/init.hlinux/kernel.hlinux/module.hlinux/rtnetlink.hlinux/slab.hlinux/spinlock.h
Detected Declarations
struct authenc_instance_ctxstruct crypto_authenc_ctxstruct authenc_request_ctxfunction authenc_request_completefunction crypto_authenc_extractkeysfunction crypto_authenc_setkeyfunction authenc_geniv_ahash_finishfunction authenc_geniv_ahash_donefunction authenc_geniv_ahash_done2function crypto_authenc_genicvfunction crypto_authenc_encrypt_donefunction crypto_authenc_encryptfunction authenc_decrypt_tail_donefunction crypto_authenc_decrypt_tailfunction authenc_verify_ahash_donefunction crypto_authenc_decryptfunction crypto_authenc_init_tfmfunction crypto_authenc_exit_tfmfunction crypto_authenc_freefunction crypto_authenc_createfunction crypto_authenc_module_initfunction crypto_authenc_module_exitmodule init crypto_authenc_module_initexport crypto_authenc_extractkeys
Annotated Snippet
module_init(crypto_authenc_module_init);
module_exit(crypto_authenc_module_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Simple AEAD wrapper for IPsec");
MODULE_ALIAS_CRYPTO("authenc");
Annotation
- Immediate include surface: `crypto/internal/aead.h`, `crypto/internal/hash.h`, `crypto/internal/skcipher.h`, `crypto/authenc.h`, `crypto/scatterwalk.h`, `linux/err.h`, `linux/init.h`, `linux/kernel.h`.
- Detected declarations: `struct authenc_instance_ctx`, `struct crypto_authenc_ctx`, `struct authenc_request_ctx`, `function authenc_request_complete`, `function crypto_authenc_extractkeys`, `function crypto_authenc_setkey`, `function authenc_geniv_ahash_finish`, `function authenc_geniv_ahash_done`, `function authenc_geniv_ahash_done2`, `function crypto_authenc_genicv`.
- Atlas domain: Kernel Services / crypto.
- 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.