crypto/serpent_generic.c
Source file repositories/reference/linux-study-clean/crypto/serpent_generic.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/serpent_generic.c- Extension
.c- Size
- 20077 bytes
- Lines
- 610
- 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/algapi.hlinux/init.hlinux/module.hlinux/errno.hlinux/unaligned.hlinux/types.hcrypto/serpent.h
Detected Declarations
function __serpent_setkey_sboxfunction __serpent_setkeyfunction serpent_setkeyfunction __serpent_encryptfunction serpent_encryptfunction __serpent_decryptfunction serpent_decryptfunction serpent_mod_initfunction serpent_mod_finimodule init serpent_mod_initexport __serpent_setkeyexport serpent_setkeyexport __serpent_encryptexport __serpent_decrypt
Annotated Snippet
module_init(serpent_mod_init);
module_exit(serpent_mod_fini);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Serpent Cipher Algorithm");
MODULE_AUTHOR("Dag Arne Osvik <osvik@ii.uib.no>");
MODULE_ALIAS_CRYPTO("serpent");
MODULE_ALIAS_CRYPTO("serpent-generic");
Annotation
- Immediate include surface: `crypto/algapi.h`, `linux/init.h`, `linux/module.h`, `linux/errno.h`, `linux/unaligned.h`, `linux/types.h`, `crypto/serpent.h`.
- Detected declarations: `function __serpent_setkey_sbox`, `function __serpent_setkey`, `function serpent_setkey`, `function __serpent_encrypt`, `function serpent_encrypt`, `function __serpent_decrypt`, `function serpent_decrypt`, `function serpent_mod_init`, `function serpent_mod_fini`, `module init serpent_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.