lib/crypto/blake2s.c
Source file repositories/reference/linux-study-clean/lib/crypto/blake2s.c
File Facts
- System
- Linux kernel
- Corpus path
lib/crypto/blake2s.c- Extension
.c- Size
- 4298 bytes
- Lines
- 160
- 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/blake2s.hlinux/bug.hlinux/export.hlinux/kernel.hlinux/module.hlinux/string.hlinux/unroll.hlinux/types.hblake2s.h
Detected Declarations
function blake2s_increment_counterfunction blake2s_compress_genericfunction blake2s_set_lastblockfunction blake2s_updatefunction blake2s_finalfunction blake2s_mod_initmodule init blake2s_mod_initexport blake2s_updateexport blake2s_final
Annotated Snippet
subsys_initcall(blake2s_mod_init);
#endif
MODULE_DESCRIPTION("BLAKE2s hash function");
MODULE_AUTHOR("Jason A. Donenfeld <Jason@zx2c4.com>");
Annotation
- Immediate include surface: `crypto/blake2s.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 blake2s_increment_counter`, `function blake2s_compress_generic`, `function blake2s_set_lastblock`, `function blake2s_update`, `function blake2s_final`, `function blake2s_mod_init`, `module init blake2s_mod_init`, `export blake2s_update`, `export blake2s_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.