Contents
- Same origin does not mean same purpose
- ML-KEM establishes secrecy for further data protection
- ML-DSA signs but does not create a confidential channel
- Numbers in names cannot be read as the length of the same key
- In SSH, both families have a different place
- How to choose the right capability for your system
- Practical conclusion check
- Frequently asked questions
Same origin does not mean same purpose
ML-KEM and ML-DSA are post-quantum cryptographic mechanisms based on the module lattice problem. However, they are not two interchangeable encryption variants. ML-KEM is used to establish a shared secret, ML-DSA to create and verify digital signatures. The choice begins with the question of what the protocol should ensure at a given step.
NIST has standardized ML-KEM in FIPS 203 and ML-DSA in FIPS 204. Implementations are expected to adhere to the specific standard, parameters, and any revisions. The historical names Kyber and Dilithium explain the origin of the families, but an old experimental interface or stored format may not be binary compatible with the final standard. Therefore, a similar name is not a sufficient test of compatibility.
ML-KEM establishes secrecy for further data protection
KEM offers key generation, encapsulation, and decapsulation of secrets. One party provides a public encapsulation key. The other party produces the encapsulated output and a shared secret; the holder of the corresponding private material obtains the same secret by decapsulation. A large document is not usually encrypted directly by this mechanism: the protocol derives the keys for symmetric protection from the result.
The KEM itself does not say who owns the public key. An active attacker could inject their own key if the protocol does not verify identity and does not exchange the entire transcript of the communication. Therefore, complete login security cannot be inferred from the presence of ML-KEM in the library. Authentication, key derivation, and correct error handling are important.
ML-DSA signs but does not create a confidential channel
ML-DSA creates a signature with a private key and verifies it with the corresponding public key. It is used where you need to prove the relationship between a key and data, for example in a signed document or authentication protocol. The signature itself does not conceal the content. A document with a valid signature can remain readable by anyone who obtains it.
Trust in the signer requires a verified binding of the public key to the expected identity. A correct signature with the attacker's key does not prove the real issuer. In addition, the context of the signed challenge and replay protection are important in the login protocol. A secure application is not just a call to the sign function and the subsequent display of a green result.
Numbers in names cannot be read as the length of the same key
ML-KEM uses parameter sets of 512, 768, and 1024; ML-DSA uses sets of 44, 65, and 87. The numbers do not represent a single common quantity and cannot be compared as a higher or lower number of security bits. In addition, the dimensions of public keys, encapsulated values, and signatures vary. In operation, compare the corresponding security category, transfer size, and operation cost.
A higher parameter set will not automatically resolve storage, randomness, or protocol errors. The private key in the log remains a problem regardless of its family. For common integration, use supported protocol profiles and a maintained library. Do not build your own combination based on the largest numbers in the generator menu.
In SSH, both families have a different place
The mlkem768x25519-sha256 algorithm is a hybrid key exchange that combines ML-KEM and X25519. Its negotiation can protect the confidentiality of the transport even when the user logs in with a classic Ed25519 key. This does not mean that their Ed25519 key has changed to a post-quantum signature key.
Post-quantum authentication requires separate support for the signature mechanism on both the client and server sides and corresponding authorization. Some implementations use hybrid signatures combining classical and post-quantum parts. Their exact name and format are part of the protocol. Generating ML-DSA material in another tool does not guarantee that the SSH client can use it.
How to choose the right capability for your system
When inventorying, separate transport, server authentication, user login, and distributed file signing. For each layer, record the specific algorithm and available implementation. Claiming post-quantum secure without specifying the layer is too vague. For long-term secret data, the possibility that an attacker stores the communication today and attacks the key exchange later is also significant.
Implement the change on a test connection first and keep a working recovery path. Measure actual compatibility and, if necessary, connection establishment costs. The article does not provide actual speed measurements of ML-KEM or ML-DSA; performance depends on platform, library, and protocol integration. Successful key generation is not a measure of the security of production communications.
Practical conclusion check
- You need to establish a shared secret: consider KEM and its protocol usage.
- You need to verify a signature or identity: assess the signature mechanism and trust in the key.
- For SSH, verify the actual negotiated exchange separately from authentication.
- For an application, distinguish between generation, export and actual use of the algorithm.
In CH-J Tools and other key managers, read the menu by specific operation and release. For example, the mobile 0.0.4 series does not have all the SSH capabilities of the desktop simply because it includes a broad generator. A good result describes the exact supported function, the specific counterparty, and the verified transmission or signature, not just the name of the cryptographic family.
Frequently asked questions
Is ML-KEM a digital signature?
No. It is used to establish secrecy. Digital signature is provided by, for example, ML-DSA.
Does ML-DSA encrypt a document?
No. A signature does not ensure the confidentiality of its contents.
Does ML-KEM in SSH mean post-quantum user key?
No. Transport key exchange and user authentication are different layers.