lib/crypto/sha256.c
Source file repositories/reference/linux-study-clean/lib/crypto/sha256.c
File Facts
- System
- Linux kernel
- Corpus path
lib/crypto/sha256.c- Extension
.c- Size
- 14502 bytes
- Lines
- 516
- 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/string.hlinux/unaligned.hlinux/wordpart.hfips.hsha256.h
Detected Declarations
function LOAD_OPfunction BLEND_OPfunction sha256_block_genericfunction sha256_blocks_genericfunction __sha256_initfunction sha224_initfunction sha256_initfunction __sha256_updatefunction __sha256_finalfunction sha224_finalfunction sha256_finalfunction sha224function sha256function sha256_finup_2x_archfunction sha256_finup_2x_is_optimized_archfunction sha256_finup_2x_sequentialfunction sha256_finup_2xfunction sha256_finup_2x_is_optimizedfunction __hmac_sha256_preparekeyfunction hmac_sha224_preparekeyfunction hmac_sha256_preparekeyfunction __hmac_sha256_initfunction hmac_sha224_init_usingrawkeyfunction hmac_sha256_init_usingrawkeyfunction __hmac_sha256_finalfunction hmac_sha224_finalfunction hmac_sha256_finalfunction hmac_sha224function hmac_sha256function hmac_sha224_usingrawkeyfunction hmac_sha256_usingrawkeyfunction sha256_mod_initfunction sha256_mod_exitmodule init sha256_mod_initexport sha224_initexport sha256_initexport __sha256_updateexport sha224_finalexport sha256_finalexport sha224export sha256export sha256_finup_2xexport sha256_finup_2x_is_optimizedexport hmac_sha224_preparekeyexport hmac_sha256_preparekeyexport __hmac_sha256_initexport hmac_sha224_init_usingrawkeyexport hmac_sha256_init_usingrawkey
Annotated Snippet
subsys_initcall(sha256_mod_init);
static void __exit sha256_mod_exit(void)
{
}
module_exit(sha256_mod_exit);
#endif
#endif /* !__DISABLE_EXPORTS */
MODULE_DESCRIPTION("SHA-224, SHA-256, HMAC-SHA224, and HMAC-SHA256 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/string.h`, `linux/unaligned.h`, `linux/wordpart.h`.
- Detected declarations: `function LOAD_OP`, `function BLEND_OP`, `function sha256_block_generic`, `function sha256_blocks_generic`, `function __sha256_init`, `function sha224_init`, `function sha256_init`, `function __sha256_update`, `function __sha256_final`, `function sha224_final`.
- 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.