crypto/sha512.c
Source file repositories/reference/linux-study-clean/crypto/sha512.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/sha512.c- Extension
.c- Size
- 12371 bytes
- Lines
- 426
- 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/sha2.hlinux/kernel.hlinux/module.h
Detected Declarations
function __crypto_sha512_exportfunction __crypto_sha512_importfunction __crypto_sha512_export_corefunction __crypto_sha512_import_corefunction crypto_sha384_initfunction crypto_sha384_updatefunction crypto_sha384_finalfunction crypto_sha384_digestfunction crypto_sha384_exportfunction crypto_sha384_importfunction crypto_sha384_export_corefunction crypto_sha384_import_corefunction crypto_sha512_initfunction crypto_sha512_updatefunction crypto_sha512_finalfunction crypto_sha512_digestfunction crypto_sha512_exportfunction crypto_sha512_importfunction crypto_sha512_export_corefunction crypto_sha512_import_corefunction crypto_hmac_sha384_setkeyfunction crypto_hmac_sha384_initfunction crypto_hmac_sha384_updatefunction crypto_hmac_sha384_finalfunction crypto_hmac_sha384_digestfunction crypto_hmac_sha384_exportfunction crypto_hmac_sha384_importfunction crypto_hmac_sha384_export_corefunction crypto_hmac_sha384_import_corefunction crypto_hmac_sha512_setkeyfunction crypto_hmac_sha512_initfunction crypto_hmac_sha512_updatefunction crypto_hmac_sha512_finalfunction crypto_hmac_sha512_digestfunction crypto_hmac_sha512_exportfunction crypto_hmac_sha512_importfunction crypto_hmac_sha512_export_corefunction crypto_hmac_sha512_import_corefunction crypto_sha512_mod_initfunction crypto_sha512_mod_exitmodule init crypto_sha512_mod_initexport sha384_zero_message_hashexport sha512_zero_message_hash
Annotated Snippet
module_init(crypto_sha512_mod_init);
static void __exit crypto_sha512_mod_exit(void)
{
crypto_unregister_shashes(algs, ARRAY_SIZE(algs));
}
module_exit(crypto_sha512_mod_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Crypto API support for SHA-384, SHA-512, HMAC-SHA384, and HMAC-SHA512");
MODULE_ALIAS_CRYPTO("sha384");
MODULE_ALIAS_CRYPTO("sha384-lib");
MODULE_ALIAS_CRYPTO("sha512");
MODULE_ALIAS_CRYPTO("sha512-lib");
MODULE_ALIAS_CRYPTO("hmac(sha384)");
MODULE_ALIAS_CRYPTO("hmac-sha384-lib");
MODULE_ALIAS_CRYPTO("hmac(sha512)");
MODULE_ALIAS_CRYPTO("hmac-sha512-lib");
Annotation
- Immediate include surface: `crypto/internal/hash.h`, `crypto/sha2.h`, `linux/kernel.h`, `linux/module.h`.
- Detected declarations: `function __crypto_sha512_export`, `function __crypto_sha512_import`, `function __crypto_sha512_export_core`, `function __crypto_sha512_import_core`, `function crypto_sha384_init`, `function crypto_sha384_update`, `function crypto_sha384_final`, `function crypto_sha384_digest`, `function crypto_sha384_export`, `function crypto_sha384_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.