crypto/hmac.c
Source file repositories/reference/linux-study-clean/crypto/hmac.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/hmac.c- Extension
.c- Size
- 14492 bytes
- Lines
- 551
- 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/hmac.hcrypto/internal/hash.hlinux/err.hlinux/fips.hlinux/kernel.hlinux/module.hlinux/slab.hlinux/string.h
Detected Declarations
struct hmac_ctxstruct ahash_hmac_ctxfunction hmac_setkeyfunction hmac_exportfunction hmac_importfunction hmac_export_corefunction hmac_import_corefunction hmac_initfunction hmac_updatefunction hmac_finupfunction hmac_init_tfmfunction hmac_exit_tfmfunction __hmac_create_shashfunction hmac_setkey_ahashfunction hmac_export_ahashfunction hmac_import_ahashfunction hmac_export_core_ahashfunction hmac_import_core_ahashfunction hmac_init_ahashfunction hmac_update_ahashfunction hmac_finup_finishfunction hmac_finup_donefunction hmac_finup_ahashfunction hmac_digest_ahashfunction hmac_init_ahash_tfmfunction hmac_exit_ahash_tfmfunction hmac_create_ahashfunction hmac_createfunction hmac_create_shashfunction hmac_module_initfunction hmac_module_exitmodule init hmac_module_init
Annotated Snippet
module_init(hmac_module_init);
module_exit(hmac_module_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("HMAC hash algorithm");
MODULE_ALIAS_CRYPTO("hmac");
Annotation
- Immediate include surface: `crypto/hmac.h`, `crypto/internal/hash.h`, `linux/err.h`, `linux/fips.h`, `linux/kernel.h`, `linux/module.h`, `linux/slab.h`, `linux/string.h`.
- Detected declarations: `struct hmac_ctx`, `struct ahash_hmac_ctx`, `function hmac_setkey`, `function hmac_export`, `function hmac_import`, `function hmac_export_core`, `function hmac_import_core`, `function hmac_init`, `function hmac_update`, `function hmac_finup`.
- 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.