crypto/blake2b.c
Source file repositories/reference/linux-study-clean/crypto/blake2b.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/blake2b.c- Extension
.c- Size
- 3090 bytes
- Lines
- 112
- 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/blake2b.hcrypto/internal/hash.hlinux/kernel.hlinux/module.h
Detected Declarations
struct blake2b_tfm_ctxfunction crypto_blake2b_setkeyfunction crypto_blake2b_initfunction crypto_blake2b_updatefunction crypto_blake2b_finalfunction crypto_blake2b_digestfunction crypto_blake2b_mod_initfunction crypto_blake2b_mod_exitmodule init crypto_blake2b_mod_init
Annotated Snippet
module_init(crypto_blake2b_mod_init);
static void __exit crypto_blake2b_mod_exit(void)
{
crypto_unregister_shashes(algs, ARRAY_SIZE(algs));
}
module_exit(crypto_blake2b_mod_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Crypto API support for BLAKE2b");
MODULE_ALIAS_CRYPTO("blake2b-160");
MODULE_ALIAS_CRYPTO("blake2b-160-lib");
MODULE_ALIAS_CRYPTO("blake2b-256");
MODULE_ALIAS_CRYPTO("blake2b-256-lib");
MODULE_ALIAS_CRYPTO("blake2b-384");
MODULE_ALIAS_CRYPTO("blake2b-384-lib");
MODULE_ALIAS_CRYPTO("blake2b-512");
MODULE_ALIAS_CRYPTO("blake2b-512-lib");
Annotation
- Immediate include surface: `crypto/blake2b.h`, `crypto/internal/hash.h`, `linux/kernel.h`, `linux/module.h`.
- Detected declarations: `struct blake2b_tfm_ctx`, `function crypto_blake2b_setkey`, `function crypto_blake2b_init`, `function crypto_blake2b_update`, `function crypto_blake2b_final`, `function crypto_blake2b_digest`, `function crypto_blake2b_mod_init`, `function crypto_blake2b_mod_exit`, `module init crypto_blake2b_mod_init`.
- 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.