crypto/ecb.c
Source file repositories/reference/linux-study-clean/crypto/ecb.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/ecb.c- Extension
.c- Size
- 6157 bytes
- Lines
- 229
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
crypto/internal/cipher.hcrypto/internal/skcipher.hlinux/err.hlinux/init.hlinux/kernel.hlinux/module.hlinux/slab.h
Detected Declarations
function Copyrightfunction crypto_ecb_encrypt2function crypto_ecb_decrypt2function lskcipher_setkey_simple2function lskcipher_init_tfm_simple2function lskcipher_exit_tfm_simple2function lskcipher_free_instance_simple2function crypto_ecb_create2function crypto_ecb_createfunction crypto_ecb_module_initfunction crypto_ecb_module_exitmodule init crypto_ecb_module_init
Annotated Snippet
module_init(crypto_ecb_module_init);
module_exit(crypto_ecb_module_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("ECB block cipher mode of operation");
MODULE_ALIAS_CRYPTO("ecb");
MODULE_IMPORT_NS("CRYPTO_INTERNAL");
Annotation
- Immediate include surface: `crypto/internal/cipher.h`, `crypto/internal/skcipher.h`, `linux/err.h`, `linux/init.h`, `linux/kernel.h`, `linux/module.h`, `linux/slab.h`.
- Detected declarations: `function Copyright`, `function crypto_ecb_encrypt2`, `function crypto_ecb_decrypt2`, `function lskcipher_setkey_simple2`, `function lskcipher_init_tfm_simple2`, `function lskcipher_exit_tfm_simple2`, `function lskcipher_free_instance_simple2`, `function crypto_ecb_create2`, `function crypto_ecb_create`, `function crypto_ecb_module_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.