lib/crypto/sha512.c
Source file repositories/reference/linux-study-clean/lib/crypto/sha512.c
File Facts
- System
- Linux kernel
- Corpus path
lib/crypto/sha512.c- Extension
.c- Size
- 13795 bytes
- Lines
- 441
- Domain
- Kernel Services
- Bucket
- lib
- 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/hmac.hcrypto/sha2.hlinux/export.hlinux/kernel.hlinux/module.hlinux/overflow.hlinux/string.hlinux/unaligned.hlinux/wordpart.hfips.hsha512.h
Detected Declarations
function sha512_block_genericfunction sha512_blocks_genericfunction __sha512_initfunction sha384_initfunction sha512_initfunction __sha512_updatefunction __sha512_finalfunction sha384_finalfunction sha512_finalfunction sha384function sha512function __hmac_sha512_preparekeyfunction hmac_sha384_preparekeyfunction hmac_sha512_preparekeyfunction __hmac_sha512_initfunction hmac_sha384_init_usingrawkeyfunction hmac_sha512_init_usingrawkeyfunction __hmac_sha512_finalfunction hmac_sha384_finalfunction hmac_sha512_finalfunction hmac_sha384function hmac_sha512function hmac_sha384_usingrawkeyfunction hmac_sha512_usingrawkeyfunction sha512_mod_initfunction sha512_mod_exitmodule init sha512_mod_initexport sha384_initexport sha512_initexport __sha512_updateexport sha384_finalexport sha512_finalexport sha384export sha512export hmac_sha384_preparekeyexport hmac_sha512_preparekeyexport __hmac_sha512_initexport hmac_sha384_init_usingrawkeyexport hmac_sha512_init_usingrawkeyexport hmac_sha384_finalexport hmac_sha512_finalexport hmac_sha384export hmac_sha512export hmac_sha384_usingrawkeyexport hmac_sha512_usingrawkey
Annotated Snippet
subsys_initcall(sha512_mod_init);
static void __exit sha512_mod_exit(void)
{
}
module_exit(sha512_mod_exit);
#endif
MODULE_DESCRIPTION("SHA-384, SHA-512, HMAC-SHA384, and HMAC-SHA512 library functions");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `crypto/hmac.h`, `crypto/sha2.h`, `linux/export.h`, `linux/kernel.h`, `linux/module.h`, `linux/overflow.h`, `linux/string.h`, `linux/unaligned.h`.
- Detected declarations: `function sha512_block_generic`, `function sha512_blocks_generic`, `function __sha512_init`, `function sha384_init`, `function sha512_init`, `function __sha512_update`, `function __sha512_final`, `function sha384_final`, `function sha512_final`, `function sha384`.
- Atlas domain: Kernel Services / lib.
- 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.