crypto/ccm.c
Source file repositories/reference/linux-study-clean/crypto/ccm.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/ccm.c- Extension
.c- Size
- 23565 bytes
- Lines
- 942
- 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/cipher.hcrypto/internal/hash.hcrypto/internal/skcipher.hcrypto/scatterwalk.hcrypto/utils.hlinux/err.hlinux/kernel.hlinux/module.hlinux/slab.hlinux/string.h
Detected Declarations
struct ccm_instance_ctxstruct crypto_ccm_ctxstruct crypto_rfc4309_ctxstruct crypto_rfc4309_req_ctxstruct crypto_ccm_req_priv_ctxstruct cbcmac_tfm_ctxfunction set_msg_lenfunction crypto_ccm_setkeyfunction crypto_ccm_setauthsizefunction format_inputfunction format_adatafunction crypto_ccm_authfunction crypto_ccm_encrypt_donefunction crypto_ccm_check_ivfunction crypto_ccm_init_cryptfunction crypto_ccm_encryptfunction crypto_ccm_decrypt_donefunction crypto_ccm_decryptfunction crypto_ccm_init_tfmfunction crypto_ccm_exit_tfmfunction crypto_ccm_freefunction crypto_ccm_create_commonfunction crypto_ccm_createfunction crypto_ccm_base_createfunction crypto_rfc4309_setkeyfunction crypto_rfc4309_setauthsizefunction crypto_rfc4309_encryptfunction crypto_rfc4309_decryptfunction crypto_rfc4309_init_tfmfunction crypto_rfc4309_exit_tfmfunction crypto_rfc4309_freefunction crypto_rfc4309_createfunction crypto_cbcmac_digest_setkeyfunction crypto_cbcmac_digest_initfunction crypto_cbcmac_digest_updatefunction crypto_cbcmac_digest_finupfunction cbcmac_init_tfmfunction cbcmac_exit_tfmfunction cbcmac_createfunction crypto_ccm_module_initfunction crypto_ccm_module_exitmodule init crypto_ccm_module_init
Annotated Snippet
module_init(crypto_ccm_module_init);
module_exit(crypto_ccm_module_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Counter with CBC MAC");
MODULE_ALIAS_CRYPTO("ccm_base");
MODULE_ALIAS_CRYPTO("rfc4309");
MODULE_ALIAS_CRYPTO("ccm");
MODULE_ALIAS_CRYPTO("cbcmac");
MODULE_IMPORT_NS("CRYPTO_INTERNAL");
Annotation
- Immediate include surface: `crypto/internal/aead.h`, `crypto/internal/cipher.h`, `crypto/internal/hash.h`, `crypto/internal/skcipher.h`, `crypto/scatterwalk.h`, `crypto/utils.h`, `linux/err.h`, `linux/kernel.h`.
- Detected declarations: `struct ccm_instance_ctx`, `struct crypto_ccm_ctx`, `struct crypto_rfc4309_ctx`, `struct crypto_rfc4309_req_ctx`, `struct crypto_ccm_req_priv_ctx`, `struct cbcmac_tfm_ctx`, `function set_msg_len`, `function crypto_ccm_setkey`, `function crypto_ccm_setauthsize`, `function format_input`.
- 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.