drivers/crypto/padlock-sha.c
Source file repositories/reference/linux-study-clean/drivers/crypto/padlock-sha.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/crypto/padlock-sha.c- Extension
.c- Size
- 10759 bytes
- Lines
- 396
- 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
asm/cpu_device_id.hcrypto/internal/hash.hcrypto/padlock.hcrypto/sha1.hcrypto/sha2.hlinux/cpufeature.hlinux/err.hlinux/kernel.hlinux/module.h
Detected Declarations
struct padlock_sha_ctxfunction padlock_sha1_initfunction padlock_sha256_initfunction padlock_sha_updatefunction padlock_sha_exportfunction padlock_sha_importfunction padlock_output_blockfunction padlock_sha_finupfunction padlock_sha1_finupfunction padlock_sha256_finupfunction padlock_init_tfmfunction padlock_exit_tfmfunction padlock_sha1_update_nanofunction padlock_sha256_update_nanofunction padlock_initfunction padlock_finimodule init padlock_init
Annotated Snippet
module_init(padlock_init);
module_exit(padlock_fini);
MODULE_DESCRIPTION("VIA PadLock SHA1/SHA256 algorithms support.");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Michal Ludvig");
MODULE_ALIAS_CRYPTO("sha1-all");
MODULE_ALIAS_CRYPTO("sha256-all");
MODULE_ALIAS_CRYPTO("sha1-padlock");
MODULE_ALIAS_CRYPTO("sha256-padlock");
Annotation
- Immediate include surface: `asm/cpu_device_id.h`, `crypto/internal/hash.h`, `crypto/padlock.h`, `crypto/sha1.h`, `crypto/sha2.h`, `linux/cpufeature.h`, `linux/err.h`, `linux/kernel.h`.
- Detected declarations: `struct padlock_sha_ctx`, `function padlock_sha1_init`, `function padlock_sha256_init`, `function padlock_sha_update`, `function padlock_sha_export`, `function padlock_sha_import`, `function padlock_output_block`, `function padlock_sha_finup`, `function padlock_sha1_finup`, `function padlock_sha256_finup`.
- 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.