crypto/chacha20poly1305.c
Source file repositories/reference/linux-study-clean/crypto/chacha20poly1305.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/chacha20poly1305.c- Extension
.c- Size
- 12637 bytes
- Lines
- 494
- 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/scatterwalk.hcrypto/chacha.hcrypto/poly1305.hlinux/err.hlinux/kernel.hlinux/mm.hlinux/module.hlinux/string.h
Detected Declarations
struct chachapoly_instance_ctxstruct chachapoly_ctxstruct chacha_reqstruct chachapoly_req_ctxfunction async_done_continuefunction chacha_ivfunction poly_verify_tagfunction chacha_decrypt_donefunction chacha_decryptfunction poly_hashfunction poly_genkey_donefunction poly_genkeyfunction chacha_encrypt_donefunction chacha_encryptfunction chachapoly_encryptfunction chachapoly_decryptfunction chachapoly_setkeyfunction chachapoly_setauthsizefunction chachapoly_initfunction chachapoly_exitfunction chachapoly_freefunction chachapoly_createfunction rfc7539_createfunction rfc7539esp_createfunction chacha20poly1305_module_initfunction chacha20poly1305_module_exitmodule init chacha20poly1305_module_init
Annotated Snippet
module_init(chacha20poly1305_module_init);
module_exit(chacha20poly1305_module_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Martin Willi <martin@strongswan.org>");
MODULE_DESCRIPTION("ChaCha20-Poly1305 AEAD");
MODULE_ALIAS_CRYPTO("rfc7539");
MODULE_ALIAS_CRYPTO("rfc7539esp");
Annotation
- Immediate include surface: `crypto/internal/aead.h`, `crypto/internal/hash.h`, `crypto/internal/skcipher.h`, `crypto/scatterwalk.h`, `crypto/chacha.h`, `crypto/poly1305.h`, `linux/err.h`, `linux/kernel.h`.
- Detected declarations: `struct chachapoly_instance_ctx`, `struct chachapoly_ctx`, `struct chacha_req`, `struct chachapoly_req_ctx`, `function async_done_continue`, `function chacha_iv`, `function poly_verify_tag`, `function chacha_decrypt_done`, `function chacha_decrypt`, `function poly_hash`.
- 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.