crypto/rsa.c
Source file repositories/reference/linux-study-clean/crypto/rsa.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/rsa.c- Extension
.c- Size
- 8477 bytes
- Lines
- 438
- 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
linux/fips.hlinux/module.hlinux/mpi.hcrypto/internal/rsa.hcrypto/internal/akcipher.hcrypto/akcipher.hcrypto/algapi.h
Detected Declarations
struct rsa_mpi_keyfunction rsa_check_payloadfunction _rsa_encfunction _rsa_dec_crtfunction rsa_encfunction rsa_decfunction rsa_free_mpi_keyfunction rsa_check_key_lengthfunction rsa_check_exponent_fipsfunction rsa_set_pub_keyfunction rsa_set_priv_keyfunction rsa_max_sizefunction rsa_exit_tfmfunction rsa_initfunction rsa_exitmodule init rsa_init
Annotated Snippet
module_init(rsa_init);
module_exit(rsa_exit);
MODULE_ALIAS_CRYPTO("rsa");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("RSA generic algorithm");
Annotation
- Immediate include surface: `linux/fips.h`, `linux/module.h`, `linux/mpi.h`, `crypto/internal/rsa.h`, `crypto/internal/akcipher.h`, `crypto/akcipher.h`, `crypto/algapi.h`.
- Detected declarations: `struct rsa_mpi_key`, `function rsa_check_payload`, `function _rsa_enc`, `function _rsa_dec_crt`, `function rsa_enc`, `function rsa_dec`, `function rsa_free_mpi_key`, `function rsa_check_key_length`, `function rsa_check_exponent_fips`, `function rsa_set_pub_key`.
- 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.