lib/crypto/mldsa.c
Source file repositories/reference/linux-study-clean/lib/crypto/mldsa.c
File Facts
- System
- Linux kernel
- Corpus path
lib/crypto/mldsa.c- Extension
.c- Size
- 22995 bytes
- Lines
- 683
- Domain
- Kernel Services
- Bucket
- lib
- 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/mldsa.hcrypto/sha3.hkunit/visibility.hlinux/export.hlinux/module.hlinux/slab.hlinux/string.hlinux/unaligned.hfips-mldsa.h
Detected Declarations
struct mldsa_ring_elemstruct mldsa_verification_workspacefunction thefunction nttfunction invntt_and_mul_2_32function decode_zfunction decode_hint_vectorfunction sample_in_ballfunction rej_ntt_polyfunction use_hintfunction use_hint_elemfunction mldsa_use_hintfunction encode_w1function mldsa_verifyfunction mldsa_mod_initfunction mldsa_mod_exitmodule init mldsa_mod_initexport mldsa_verify
Annotated Snippet
subsys_initcall(mldsa_mod_init);
static void __exit mldsa_mod_exit(void)
{
}
module_exit(mldsa_mod_exit);
#endif /* CONFIG_CRYPTO_FIPS */
MODULE_DESCRIPTION("ML-DSA signature verification");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `crypto/mldsa.h`, `crypto/sha3.h`, `kunit/visibility.h`, `linux/export.h`, `linux/module.h`, `linux/slab.h`, `linux/string.h`, `linux/unaligned.h`.
- Detected declarations: `struct mldsa_ring_elem`, `struct mldsa_verification_workspace`, `function the`, `function ntt`, `function invntt_and_mul_2_32`, `function decode_z`, `function decode_hint_vector`, `function sample_in_ball`, `function rej_ntt_poly`, `function use_hint`.
- Atlas domain: Kernel Services / lib.
- 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.