crypto/pcrypt.c
Source file repositories/reference/linux-study-clean/crypto/pcrypt.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/pcrypt.c- Extension
.c- Size
- 9694 bytes
- Lines
- 395
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/algapi.hcrypto/internal/aead.hlinux/atomic.hlinux/err.hlinux/init.hlinux/module.hlinux/slab.hlinux/kobject.hlinux/cpu.hcrypto/pcrypt.h
Detected Declarations
struct pcrypt_instance_ctxstruct pcrypt_aead_ctxfunction pcrypt_aead_setkeyfunction pcrypt_aead_setauthsizefunction pcrypt_aead_serialfunction pcrypt_aead_donefunction pcrypt_aead_encfunction pcrypt_aead_encryptfunction pcrypt_aead_decfunction pcrypt_aead_decryptfunction pcrypt_aead_init_tfmfunction pcrypt_aead_exit_tfmfunction pcrypt_freefunction pcrypt_init_instancefunction pcrypt_create_aeadfunction pcrypt_createfunction pcrypt_sysfs_addfunction pcrypt_init_padatafunction pcrypt_initfunction pcrypt_exitmodule init pcrypt_init
Annotated Snippet
module_init(pcrypt_init);
module_exit(pcrypt_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Steffen Klassert <steffen.klassert@secunet.com>");
MODULE_DESCRIPTION("Parallel crypto wrapper");
MODULE_ALIAS_CRYPTO("pcrypt");
Annotation
- Immediate include surface: `crypto/algapi.h`, `crypto/internal/aead.h`, `linux/atomic.h`, `linux/err.h`, `linux/init.h`, `linux/module.h`, `linux/slab.h`, `linux/kobject.h`.
- Detected declarations: `struct pcrypt_instance_ctx`, `struct pcrypt_aead_ctx`, `function pcrypt_aead_setkey`, `function pcrypt_aead_setauthsize`, `function pcrypt_aead_serial`, `function pcrypt_aead_done`, `function pcrypt_aead_enc`, `function pcrypt_aead_encrypt`, `function pcrypt_aead_dec`, `function pcrypt_aead_decrypt`.
- Atlas domain: Kernel Services / crypto.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.