crypto/krb5enc.c
Source file repositories/reference/linux-study-clean/crypto/krb5enc.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/krb5enc.c- Extension
.c- Size
- 14427 bytes
- Lines
- 516
- 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/aead.hcrypto/internal/hash.hcrypto/internal/skcipher.hcrypto/authenc.hcrypto/scatterwalk.hlinux/err.hlinux/init.hlinux/kernel.hlinux/module.hlinux/rtnetlink.hlinux/slab.hlinux/spinlock.h
Detected Declarations
struct krb5enc_instance_ctxstruct krb5enc_ctxstruct krb5enc_request_ctxfunction crypto_krb5enc_extractkeysfunction krb5enc_setkeyfunction krb5enc_encrypt_donefunction krb5enc_dispatch_encryptfunction krb5enc_insert_checksumfunction krb5enc_encrypt_ahash_donefunction krb5enc_dispatch_encrypt_hashfunction krb5enc_encryptfunction krb5enc_verify_hashfunction krb5enc_decrypt_hash_donefunction krb5enc_dispatch_decrypt_hashfunction krb5enc_decrypt_donefunction krb5enc_dispatch_decryptfunction krb5enc_decryptfunction krb5enc_init_tfmfunction krb5enc_exit_tfmfunction krb5enc_freefunction krb5enc_createfunction crypto_krb5enc_module_initfunction crypto_krb5enc_module_exitmodule init crypto_krb5enc_module_initexport crypto_krb5enc_extractkeys
Annotated Snippet
module_init(crypto_krb5enc_module_init);
module_exit(crypto_krb5enc_module_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Simple AEAD wrapper for Kerberos 5 RFC3961");
MODULE_ALIAS_CRYPTO("krb5enc");
Annotation
- Immediate include surface: `crypto/internal/aead.h`, `crypto/internal/hash.h`, `crypto/internal/skcipher.h`, `crypto/authenc.h`, `crypto/scatterwalk.h`, `linux/err.h`, `linux/init.h`, `linux/kernel.h`.
- Detected declarations: `struct krb5enc_instance_ctx`, `struct krb5enc_ctx`, `struct krb5enc_request_ctx`, `function crypto_krb5enc_extractkeys`, `function krb5enc_setkey`, `function krb5enc_encrypt_done`, `function krb5enc_dispatch_encrypt`, `function krb5enc_insert_checksum`, `function krb5enc_encrypt_ahash_done`, `function krb5enc_dispatch_encrypt_hash`.
- 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.