lib/crypto/blake2b.c
Source file repositories/reference/linux-study-clean/lib/crypto/blake2b.c
File Facts
- System
- Linux kernel
- Corpus path
lib/crypto/blake2b.c- Extension
.c- Size
- 4679 bytes
- Lines
- 171
- 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/blake2b.hlinux/bug.hlinux/export.hlinux/kernel.hlinux/module.hlinux/string.hlinux/unroll.hlinux/types.hblake2b.h
Detected Declarations
function blake2b_increment_counterfunction blake2b_compress_genericfunction blake2b_set_lastblockfunction blake2b_updatefunction blake2b_finalfunction blake2b_mod_initfunction blake2b_mod_exitmodule init blake2b_mod_initexport blake2b_updateexport blake2b_final
Annotated Snippet
subsys_initcall(blake2b_mod_init);
static void __exit blake2b_mod_exit(void)
{
}
module_exit(blake2b_mod_exit);
#endif
MODULE_DESCRIPTION("BLAKE2b hash function");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `crypto/blake2b.h`, `linux/bug.h`, `linux/export.h`, `linux/kernel.h`, `linux/module.h`, `linux/string.h`, `linux/unroll.h`, `linux/types.h`.
- Detected declarations: `function blake2b_increment_counter`, `function blake2b_compress_generic`, `function blake2b_set_lastblock`, `function blake2b_update`, `function blake2b_final`, `function blake2b_mod_init`, `function blake2b_mod_exit`, `module init blake2b_mod_init`, `export blake2b_update`, `export blake2b_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.