drivers/crypto/padlock-aes.c
Source file repositories/reference/linux-study-clean/drivers/crypto/padlock-aes.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/crypto/padlock-aes.c- Extension
.c- Size
- 14813 bytes
- Lines
- 540
- Domain
- Driver Families
- Bucket
- drivers/crypto
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- 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.hcrypto/aes.hcrypto/internal/skcipher.hcrypto/padlock.hlinux/module.hlinux/init.hlinux/types.hlinux/errno.hlinux/interrupt.hlinux/kernel.hlinux/mm.hlinux/percpu.hlinux/smp.hlinux/slab.hasm/cpu_device_id.hasm/byteorder.hasm/processor.hasm/fpu/api.h
Detected Declarations
struct cwordstruct aes_ctxfunction aes_hw_extkey_availablefunction aes_set_keyfunction aes_set_key_skcipherfunction padlock_reset_keyfunction padlock_store_cwordfunction rep_xcrypt_ecbfunction ecb_crypt_copyfunction ecb_cryptfunction padlock_xcrypt_ecbfunction padlock_aes_encryptfunction padlock_aes_decryptfunction ecb_aes_encryptfunction ecb_aes_decryptfunction cbc_aes_encryptfunction cbc_aes_decryptfunction padlock_initfunction padlock_finimodule init padlock_init
Annotated Snippet
module_init(padlock_init);
module_exit(padlock_fini);
MODULE_DESCRIPTION("VIA PadLock AES algorithm support");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Michal Ludvig");
MODULE_ALIAS_CRYPTO("aes");
Annotation
- Immediate include surface: `crypto/algapi.h`, `crypto/aes.h`, `crypto/internal/skcipher.h`, `crypto/padlock.h`, `linux/module.h`, `linux/init.h`, `linux/types.h`, `linux/errno.h`.
- Detected declarations: `struct cword`, `struct aes_ctx`, `function aes_hw_extkey_available`, `function aes_set_key`, `function aes_set_key_skcipher`, `function padlock_reset_key`, `function padlock_store_cword`, `function rep_xcrypt_ecb`, `function ecb_crypt_copy`, `function ecb_crypt`.
- Atlas domain: Driver Families / drivers/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.