crypto/md5.c
Source file repositories/reference/linux-study-clean/crypto/md5.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/md5.c- Extension
.c- Size
- 6421 bytes
- Lines
- 237
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
crypto/internal/hash.hcrypto/md5.hlinux/kernel.hlinux/module.h
Detected Declarations
function __crypto_md5_exportfunction __crypto_md5_importfunction __crypto_md5_export_corefunction __crypto_md5_import_corefunction crypto_md5_initfunction crypto_md5_updatefunction crypto_md5_finalfunction crypto_md5_digestfunction crypto_md5_exportfunction crypto_md5_importfunction crypto_md5_export_corefunction crypto_md5_import_corefunction crypto_hmac_md5_setkeyfunction crypto_hmac_md5_initfunction crypto_hmac_md5_updatefunction crypto_hmac_md5_finalfunction crypto_hmac_md5_digestfunction crypto_hmac_md5_exportfunction crypto_hmac_md5_importfunction crypto_hmac_md5_export_corefunction crypto_hmac_md5_import_corefunction crypto_md5_mod_initfunction crypto_md5_mod_exitmodule init crypto_md5_mod_initexport md5_zero_message_hash
Annotated Snippet
module_init(crypto_md5_mod_init);
static void __exit crypto_md5_mod_exit(void)
{
crypto_unregister_shashes(algs, ARRAY_SIZE(algs));
}
module_exit(crypto_md5_mod_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Crypto API support for MD5 and HMAC-MD5");
MODULE_ALIAS_CRYPTO("md5");
MODULE_ALIAS_CRYPTO("md5-lib");
MODULE_ALIAS_CRYPTO("hmac(md5)");
MODULE_ALIAS_CRYPTO("hmac-md5-lib");
Annotation
- Immediate include surface: `crypto/internal/hash.h`, `crypto/md5.h`, `linux/kernel.h`, `linux/module.h`.
- Detected declarations: `function __crypto_md5_export`, `function __crypto_md5_import`, `function __crypto_md5_export_core`, `function __crypto_md5_import_core`, `function crypto_md5_init`, `function crypto_md5_update`, `function crypto_md5_final`, `function crypto_md5_digest`, `function crypto_md5_export`, `function crypto_md5_import`.
- 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.