crypto/mldsa.c
Source file repositories/reference/linux-study-clean/crypto/mldsa.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/mldsa.c- Extension
.c- Size
- 4978 bytes
- Lines
- 202
- 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/init.hlinux/module.hcrypto/internal/sig.hcrypto/mldsa.h
Detected Declarations
struct crypto_mldsa_ctxfunction crypto_mldsa_signfunction crypto_mldsa_verifyfunction crypto_mldsa_key_sizefunction crypto_mldsa_set_pub_keyfunction crypto_mldsa_set_priv_keyfunction crypto_mldsa_max_sizefunction crypto_mldsa44_alg_initfunction crypto_mldsa65_alg_initfunction crypto_mldsa87_alg_initfunction crypto_mldsa_alg_exitfunction mldsa_initfunction mldsa_exitmodule init mldsa_init
Annotated Snippet
module_init(mldsa_init);
static void mldsa_exit(void)
{
for (int i = 0; i < ARRAY_SIZE(crypto_mldsa_algs); i++)
crypto_unregister_sig(&crypto_mldsa_algs[i]);
}
module_exit(mldsa_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Crypto API support for ML-DSA signature verification");
MODULE_ALIAS_CRYPTO("mldsa44");
MODULE_ALIAS_CRYPTO("mldsa65");
MODULE_ALIAS_CRYPTO("mldsa87");
Annotation
- Immediate include surface: `linux/init.h`, `linux/module.h`, `crypto/internal/sig.h`, `crypto/mldsa.h`.
- Detected declarations: `struct crypto_mldsa_ctx`, `function crypto_mldsa_sign`, `function crypto_mldsa_verify`, `function crypto_mldsa_key_size`, `function crypto_mldsa_set_pub_key`, `function crypto_mldsa_set_priv_key`, `function crypto_mldsa_max_size`, `function crypto_mldsa44_alg_init`, `function crypto_mldsa65_alg_init`, `function crypto_mldsa87_alg_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.