crypto/essiv.c
Source file repositories/reference/linux-study-clean/crypto/essiv.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/essiv.c- Extension
.c- Size
- 18041 bytes
- Lines
- 649
- 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/authenc.hcrypto/internal/aead.hcrypto/internal/cipher.hcrypto/internal/hash.hcrypto/internal/skcipher.hcrypto/scatterwalk.hlinux/module.hinternal.h
Detected Declarations
struct essiv_instance_ctxstruct essiv_tfm_ctxstruct essiv_aead_request_ctxfunction essiv_skcipher_setkeyfunction essiv_aead_setkeyfunction essiv_aead_setauthsizefunction essiv_skcipher_donefunction essiv_skcipher_cryptfunction essiv_skcipher_encryptfunction essiv_skcipher_decryptfunction essiv_aead_donefunction essiv_aead_cryptfunction essiv_aead_encryptfunction essiv_aead_decryptfunction essiv_init_tfmfunction essiv_skcipher_init_tfmfunction essiv_aead_init_tfmfunction essiv_skcipher_exit_tfmfunction essiv_aead_exit_tfmfunction essiv_skcipher_free_instancefunction essiv_aead_free_instancefunction parse_cipher_namefunction essiv_supported_algorithmsfunction essiv_createfunction essiv_module_initfunction essiv_module_exitmodule init essiv_module_init
Annotated Snippet
module_init(essiv_module_init);
module_exit(essiv_module_exit);
MODULE_DESCRIPTION("ESSIV skcipher/aead wrapper for block encryption");
MODULE_LICENSE("GPL v2");
MODULE_ALIAS_CRYPTO("essiv");
MODULE_IMPORT_NS("CRYPTO_INTERNAL");
Annotation
- Immediate include surface: `crypto/authenc.h`, `crypto/internal/aead.h`, `crypto/internal/cipher.h`, `crypto/internal/hash.h`, `crypto/internal/skcipher.h`, `crypto/scatterwalk.h`, `linux/module.h`, `internal.h`.
- Detected declarations: `struct essiv_instance_ctx`, `struct essiv_tfm_ctx`, `struct essiv_aead_request_ctx`, `function essiv_skcipher_setkey`, `function essiv_aead_setkey`, `function essiv_aead_setauthsize`, `function essiv_skcipher_done`, `function essiv_skcipher_crypt`, `function essiv_skcipher_encrypt`, `function essiv_skcipher_decrypt`.
- 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.