crypto/sha3.c
Source file repositories/reference/linux-study-clean/crypto/sha3.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/sha3.c- Extension
.c- Size
- 4374 bytes
- Lines
- 167
- 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/sha3.hlinux/kernel.hlinux/module.h
Detected Declarations
function crypto_sha3_224_initfunction crypto_sha3_256_initfunction crypto_sha3_384_initfunction crypto_sha3_512_initfunction crypto_sha3_updatefunction crypto_sha3_finalfunction crypto_sha3_224_digestfunction crypto_sha3_256_digestfunction crypto_sha3_384_digestfunction crypto_sha3_512_digestfunction crypto_sha3_export_corefunction crypto_sha3_import_corefunction crypto_sha3_mod_initfunction crypto_sha3_mod_exitmodule init crypto_sha3_mod_init
Annotated Snippet
module_init(crypto_sha3_mod_init);
static void __exit crypto_sha3_mod_exit(void)
{
crypto_unregister_shashes(algs, ARRAY_SIZE(algs));
}
module_exit(crypto_sha3_mod_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Crypto API support for SHA-3");
MODULE_ALIAS_CRYPTO("sha3-224");
MODULE_ALIAS_CRYPTO("sha3-224-lib");
MODULE_ALIAS_CRYPTO("sha3-256");
MODULE_ALIAS_CRYPTO("sha3-256-lib");
MODULE_ALIAS_CRYPTO("sha3-384");
MODULE_ALIAS_CRYPTO("sha3-384-lib");
MODULE_ALIAS_CRYPTO("sha3-512");
MODULE_ALIAS_CRYPTO("sha3-512-lib");
Annotation
- Immediate include surface: `crypto/internal/hash.h`, `crypto/sha3.h`, `linux/kernel.h`, `linux/module.h`.
- Detected declarations: `function crypto_sha3_224_init`, `function crypto_sha3_256_init`, `function crypto_sha3_384_init`, `function crypto_sha3_512_init`, `function crypto_sha3_update`, `function crypto_sha3_final`, `function crypto_sha3_224_digest`, `function crypto_sha3_256_digest`, `function crypto_sha3_384_digest`, `function crypto_sha3_512_digest`.
- 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.