ML-KEM vs NTRU Prime: the other lattice KEM in SSH and TLS

ML-KEM is the standardized lattice key encapsulation mechanism that TLS and current OpenSSH use by default. NTRU Prime's sntrup761 is a second lattice KEM that OpenSSH offered first, but it appears in a document that is no longer an active IETF draft.

On this page

ML-KEM vs NTRU Prime: which lattice KEM your SSH and TLS settings use

When a vendor document, tender or configuration file names sntrup761 or ML-KEM, the first question is which of the two it means and whether that choice is the one the settings actually use. ML-KEM is the standardized lattice key encapsulation mechanism, specified in FIPS 203, which NIST published as a final standard on 13 August 2024. sntrup761 is a second lattice KEM, Streamlined NTRU Prime, documented in IETF draft-josefsson-ntruprime-streamlined. That draft was published as an individual Internet-Draft on 11 May 2023, is not endorsed by the IETF, and expired on 12 November 2023, so the difference is standing and default status rather than the mathematics.

The question usually reaches SSH and TLS operators and vendor-risk reviewers. Operators meet it in OpenSSH configuration, where the key exchange algorithm list may include sntrup761x25519-sha512 or mlkem768x25519-sha256. Per the OpenSSH post-quantum page, sntrup761x25519-sha512 was offered from OpenSSH 9.0 in April 2022, and mlkem768x25519-sha256 arrived in version 9.9 and became the default in OpenSSH 10.0 in April 2025. Reviewers meet it in vendor questionnaires and tenders that ask which post-quantum key exchange is supported.

For TLS, the position is clearer. RFC 10024 defines the TLS 1.3 hybrid groups using ML-KEM, including X25519MLKEM768, and its text and code point table list no NTRU Prime groups. Before accepting a vendor claim, check the named group in the product's own documentation and confirm the version and edition it applies to. Treat a mention of sntrup761 as an OpenSSH-specific key exchange setting, not evidence of standardized TLS support, and ask the vendor which standard or draft the claim rests on.

How ML-KEM-768 and sntrup761 compare on the attributes the sources give

This table sets ML-KEM-768 against sntrup761 on status, defining document, purpose, byte sizes and protocol support, using only the figures the cited sources give. Read each row as a separate attribute: the byte sizes describe the key and ciphertext exchanged in a handshake, while the status row explains why the two are not treated as equivalent for standards-based deployments.

AttributeML-KEM-768sntrup761
What it isA key encapsulation mechanism in the ML-KEM family, with parameter set 768Streamlined NTRU Prime, a lattice-based key encapsulation mechanism with parameters p=761, q=4591 and w=286
Defining document and dateFIPS 203, published as a final standard on 13 August 2024IETF individual Internet-Draft draft-josefsson-ntruprime-streamlined, published 11 May 2023 and expired 12 November 2023
StatusFinal NIST standard, with TLS use defined in RFC 10024 (Proposed Standard, August 2026)Expired individual draft, not endorsed by the IETF; the sources list no formal IETF standing
PurposeTwo parties establish a shared secret key over a public channelReference code, algorithm introduction and test vectors for the sntrup761 scheme
Public key or encapsulation key (bytes)1184-byte encapsulation key1158-byte public key
Ciphertext (bytes)1088-byte ciphertext1039-byte ciphertext
Shared secret (bytes)32-byte shared secret32-byte shared secret
Protocol support in SSHOffered as mlkem768x25519-sha256 from OpenSSH 9.9 and the default from OpenSSH 10.0 (April 2025)Offered as sntrup761x25519-sha512 from OpenSSH 9.0 (April 2022) and the default until OpenSSH 10.0
Protocol support in TLSDefined in RFC 10024 as X25519MLKEM768 and related hybrid groups for TLS 1.3No NTRU Prime group appears in RFC 10024's text or code point table

What ML-KEM and NTRU Prime's sntrup761 are, and where practitioners meet each

ML-KEM is the key encapsulation mechanism specified in NIST FIPS 203, published as a final standard on 13 August 2024. Its job is to let two parties establish a shared secret key over a public channel: one side generates a key pair, the other uses the encapsulation key to produce a ciphertext and a shared secret, and the first side recovers the same secret by decapsulating. The standard defines three parameter sets, ML-KEM-512, ML-KEM-768 and ML-KEM-1024, which share one design and differ in size and target security category. In the TLS working group draft draft-ietf-tls-mlkem-11 (17 September 2026), the ML-KEM-768 encapsulation key is 1184 bytes and the ciphertext is 1088 bytes, while the shared secret is 32 bytes for all three sets. The ML-KEM-512 encapsulation key is 800 bytes and its ciphertext 768 bytes, and the ML-KEM-1024 encapsulation key and ciphertext are both 1568 bytes.

  • Defining document: FIPS 203 is the reference for the algorithm itself. Protocol documents then say how the KEM is used inside a handshake.
  • Parameter sets: 512, 768 and 1024 are the three named sets. Check which set a product offers before assuming a particular size.
  • TLS hybrid groups: RFC 10024 defines X25519MLKEM768 (code point 4588, 0x11EC, marked Recommended Y) alongside SecP256r1MLKEM768 and SecP384r1MLKEM1024, none of which use NTRU Prime.
  • SSH: OpenSSH supports mlkem768x25519-sha256 from version 9.9, and it became the default in OpenSSH 10.0 (April 2025).
  • Guidance: NIST SP 800-227, published as final on 18 September 2025, gives recommendations for implementing and using KEMs securely.

To check a deployment, confirm the exact parameter set and the protocol group name in the configuration, and compare them with the vendor's documentation for the version you run.

The differences that change what a system runs or what a reviewer accepts

The two lattice KEMs differ less in how they work than in where they are standardized, implemented and enabled by default. These differences decide which key exchange a system negotiates, what a reviewer can cite, and how much room a configuration leaves for the other option.

Standing for a reviewer

ML-KEM is standardized in FIPS 203, a final NIST standard published on 13 August 2024. The sntrup761 specification is an individual Internet-Draft that was published on 11 May 2023, is not endorsed by the IETF and expired on 12 November 2023. When a security review asks for a standard to cite, ML-KEM has an authoritative document and sntrup761 does not. Confirm which document your reviewer accepts before approving either algorithm.

FIPS 203 final
13 Aug 2024
FIPS 203 text

TLS group coverage

RFC 10024 defines the TLS 1.3 hybrid groups built on ML-KEM, including X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. Its text and code point table list no NTRU Prime groups. A TLS stack that is configured to the RFC will not negotiate sntrup761, so teams planning TLS deployments should expect ML-KEM groups and should not plan around an NTRU Prime group being available.

RFC 10024 text

OpenSSH default change

OpenSSH 9.0, released in April 2022, offered sntrup761x25519-sha512, which remained the default until OpenSSH 10.0 made mlkem768x25519-sha256 the default in April 2025. Systems that were never upgraded past the older default still negotiate sntrup761, while newer clients and servers negotiate ML-KEM. Check the KexAlgorithms setting on both ends, since a pinned list can keep one option or drop the other.

OpenSSH PQ page

Key and ciphertext sizes

ML-KEM-768 has a 1184-byte encapsulation key and a 1088-byte ciphertext. sntrup761 has a 1158-byte public key and a 1039-byte ciphertext. The difference is small, but handshake messages, buffers and packet size limits in network equipment and protocol parsers are sized to fixed values. Confirm that the message sizes in your stack are set for the algorithm you negotiate, and do not assume one size fits both.

Key bytes
1184 vs 1158
ML-KEM size table

Maintenance and library support

The liboqs documentation lists sntrup761 as actively maintained upstream, and it is in the public domain. Libraries that ship ML-KEM as a standardized implementation are the default choice in many product lines. Check whether your vendor or build includes sntrup761 at all, and whether the version you run receives security updates, before you rely on it.

liboqs NTRU Prime page

Where each KEM sits in an SSH key exchange and a TLS 1.3 handshake

The diagram starts with the client offering its supported key exchange groups in the SSH key exchange init message or the TLS 1.3 ClientHello. The server selects one group from that list, and both sides then run the chosen KEM, with the shared secret derived from the KEM output. On the TLS side, the hybrid groups from RFC 10024 (for example X25519MLKEM768) are the named options. On the SSH side, the names are mlkem768x25519-sha256 from OpenSSH 9.9 and sntrup761x25519-sha512 from OpenSSH 9.0 onward, which OpenSSH 10.0 replaced as the default. When you check a negotiation, confirm which group name each side actually selected, since sntrup761x25519-sha512 is not defined in RFC 10024.

Client and server choose a KEM group in TLS 1.3 and in SSH.

Where ML-KEM and sntrup761 show up in SSH, TLS, libraries and vendor documents

The practical difference between ML-KEM and sntrup761 is largely a question of where each one appears. In TLS 1.3, RFC 10024 defines the hybrid groups built on ML-KEM: X25519MLKEM768 (code point 4588, 0x11EC, marked Recommended Y), SecP256r1MLKEM768 (code point 4587, 0x11EB, Recommended N) and SecP384r1MLKEM1024 (code point 4589, 0x11ED, Recommended N). The text and code point table of that RFC list no NTRU Prime group. Teams auditing a TLS stack should look for these named groups in their TLS library and server configuration, and confirm which of them are enabled and in what preference order, since the Recommended flag is a guidance marker rather than a switch.

SSH is where sntrup761 has seen real deployment. OpenSSH 9.0, released in April 2022, offered sntrup761x25519-sha512 as a hybrid key exchange. OpenSSH 9.9 added mlkem768x25519-sha256, and OpenSSH 10.0 (April 2025) made that ML-KEM hybrid the default, replacing sntrup761 in that role. Administrators running SSH servers or clients should check the installed OpenSSH version with ssh -V and review the KexAlgorithms setting in sshd_config and ssh_config, because an explicit list can keep an older method active or remove the newer one even when the default has changed.

In libraries, the liboqs project lists sntrup761 as an IND-CCA2 KEM with claimed NIST Level 2, described as actively maintained upstream and in the public domain. The sources reviewed here do not record TLS support for it, so a library listing should not be read as evidence that sntrup761 can be negotiated in TLS. For vendor documents, ask the vendor which of these exact names and versions their product supports, and whether the claim comes from a protocol specification, from a library release note, or from an SSH build, since the three can differ.

How to work out which one applies to your SSH or TLS deployment

This sequence establishes which lattice KEM your SSH or TLS endpoints actually negotiate, which names your vendor and tender refer to, and what evidence you hold for an auditor. Each step ends with a check you can record.

  1. Check the contract, tender or audit request

    Read the contract, tender or audit request for the named algorithm and any parameter set it requires. Note whether it asks for ML-KEM (FIPS 203), for sntrup761 from the NTRU Prime draft, or for both. Record the exact wording, because a requirement for ML-KEM-768 is not met by a reference to sntrup761 alone. The output is a one-page list of the named algorithms and parameter sets, with the clause each comes from.

  2. Inventory SSH and TLS endpoints and key exchange names

    Inventory every SSH and TLS endpoint your team runs, including the component that terminates each connection. For each SSH server, record the OpenSSH version and the key exchange names in its configuration, such as the KexAlgorithms setting. Take the names from the running configuration rather than from memory. The output is an inventory table with one row per endpoint, showing its version and configured key exchange names.

  3. Check vendor documentation for group names and code points

    For each product in the inventory, read the vendor documentation for the group or algorithm names it lists. Check whether the documentation refers to RFC 10024 code points for the TLS 1.3 hybrid groups, and note any NTRU Prime names it uses. A product that lists only an expired individual draft has no formal IETF standing for that name, and you should say so in the record. The output is a mapping from each product to the names its documentation gives.

  4. Confirm parameter set and version, then test negotiation

    For each build in use, confirm the parameter set and the version it ships, for example whether mlkem768x25519-sha256 is available in the OpenSSH version you run. Then test the negotiation with a client before rollout, and confirm which group is actually selected. Repeat the test with a client that does not offer the post-quantum group to confirm the fallback behaviour. The output is a short test log per endpoint showing the negotiated group and the client used.

  5. Record the evidence for the auditor

    Collect the inventory, the vendor documentation extracts, the negotiation test logs and the contract clause into one evidence set, dated and tied to each endpoint. Note any endpoint that cannot be upgraded and how it is isolated. Ask the auditor which form of evidence they accept, and confirm before you hand over the set. The output is a dated evidence pack that maps each requirement in the contract to an endpoint and a test result.

Questions people ask about ML-KEM and NTRU Prime

Are ML-KEM and NTRU Prime the same algorithm?

No. ML-KEM and NTRU Prime are different key encapsulation mechanisms, and the sources treat them as separate designs with separate documents. ML-KEM is standardized in NIST FIPS 203, which defines three parameter sets: ML-KEM-512, ML-KEM-768 and ML-KEM-1024. The NTRU Prime variant that appears in SSH is Streamlined NTRU Prime sntrup761, described in the IETF individual draft draft-josefsson-ntruprime-streamlined. The two also differ in size. For sntrup761 that draft gives a 1158-byte public key, a 1763-byte secret key, a 1039-byte ciphertext and a 32-byte shared secret. ML-KEM-768 has a 1184-byte encapsulation key and a 1088-byte ciphertext, while its shared secret is also 32 bytes. Do not assume that a parameter set in one design corresponds to a parameter set in the other. Compare the published sizes and the document each one comes from before you treat them as interchangeable in a configuration or a test plan.

Which one is newer, ML-KEM or sntrup761?

ML-KEM is the newer standard in the sense that it has reached final status, while the sntrup761 document is older. NIST published FIPS 203 as a final standard on 13 August 2024. The sntrup761 draft was published as an individual Internet-Draft on 11 May 2023, is not endorsed by the IETF, and expired on 12 November 2023. The sources list no later revision of that draft. Among the sources, the later IETF work is the TLS draft draft-ietf-tls-mlkem-11, dated 17 September 2026, and RFC 10024, a Proposed Standard dated August 2026, which defines TLS 1.3 hybrid groups built on ML-KEM. Age alone does not decide which algorithm your environment should use. A product may ship sntrup761 for its own reasons, as OpenSSH did for a period. Confirm the status of each document and the version your software ships before you plan around either one.

Does a rule or customer require ML-KEM or sntrup761?

The sources name ML-KEM as the standardized choice. FIPS 203 specifies ML-KEM for two parties to establish a shared secret key over a public channel, and RFC 10024 defines the TLS 1.3 hybrid groups that use ML-KEM, with X25519MLKEM768 marked as Recommended. None of the sources lists a mandate, requirement or contract that names sntrup761. Read the question carefully, though. The sources do not say that ML-KEM is required by any particular regulation or customer, and no source covers every contract or regulator. If a customer, auditor or regulator asks for a named algorithm, get the exact requirement in writing and check it against the document it cites. Note also that the NIST recommendation in FIPS 203 and the IETF work are not the same thing as a legal mandate for a commercial system. Treat a requirement that appears in a tender or contract as the authority, and treat the standards as the technical reference for meeting it.

Do I need to support both ML-KEM and NTRU Prime?

The sources do not establish that you need both. They show that OpenSSH offered sntrup761x25519-sha512 from version 9.0 (April 2022), that it stayed the default until OpenSSH 10.0 made mlkem768x25519-sha256 the default in April 2025, and that mlkem768x25519-sha256 has been supported since version 9.9. The sources do not say whether a given deployment should keep the NTRU Prime group enabled after an upgrade, or whether removing it affects interoperability with older clients. The answer depends on the peers you talk to and the versions they run. Start by listing the key exchange names your servers and clients offer, then check which ones each peer accepts. Keep the NTRU Prime group only where a peer still needs it and where you have confirmed the version it runs. Any decision to remove a group should be tested against your own clients before it reaches production.

What should I ask a vendor about ML-KEM and NTRU Prime?

Ask the vendor which key exchange names its product offers and which one it negotiates by default. Ask for the exact OpenSSH or TLS library version it ships, because the sources tie the names to specific releases. For example, OpenSSH 9.0 offered sntrup761x25519-sha512 and OpenSSH 10.0 made mlkem768x25519-sha256 the default. Ask whether the product includes mlkem768x25519-sha256 at all, and whether it can be disabled or reordered. For TLS, ask whether the product uses the hybrid groups defined in RFC 10024, namely X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. Ask the vendor to point to its own documentation for each claim. A useful answer names the version, the group and the setting, and it does not rely on a general statement that the product is quantum safe. Record the answers so that you can check them against your own test results.

How can I check which key exchange my SSH server actually uses?

Start by checking the version of OpenSSH on the server and on each client. Then check which key exchange algorithms the server and client both offer. The OpenSSH release notes and the project's post-quantum page list the names. For OpenSSH from 9.0 onward, sntrup761x25519-sha512 is the NTRU Prime name, and from 9.9 onward mlkem768x25519-sha256 is the ML-KEM hybrid name. Verify the negotiated algorithm in a test session, not only in the configuration file. A config line can list a group that the build does not support, or can exclude it through another setting. Run a connection against a test host you control, record the negotiated name, and repeat the test after every upgrade. Keep the output with your change records so an auditor can see what was negotiated and when.

Is ML-KEM the only lattice KEM I should consider?

The sources do not say that ML-KEM is the only option worth considering, and they show that other designs exist. NIST selected HQC on 11 March 2025 as a code-based KEM to be standardized, and NIST said HQC is not intended to take the place of ML-KEM, which remains the recommended choice for general encryption. The sources also describe FrodoKEM, Classic McEliece and sntrup761 as separate designs. Whether any of them fits your environment depends on the constraints you have on key size, ciphertext size and the protocols you use. The sources do not rank these options for your use case. Use the NIST documents and the IETF drafts as the reference for each design, check the status of each one before you rely on it, and test any candidate against your own peers and your own performance budget.

How DeployOpen works on this

DeployOpen scopes, builds, tests and documents changes to SSH and TLS key exchange in the client's own infrastructure, with the algorithm choice set by the protocol versions and products the client runs. The work starts from a written scope that states which key exchange groups and products are covered, so the client can check which lattice KEM is in use and which is not.

How we scope

  • We list which SSH and TLS endpoints, versions and key exchange groups the written scope covers.
  • We record whether each system offers sntrup761x25519-sha512, mlkem768x25519-sha256 or neither.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We configure key exchange preferences for the SSH and TLS products named in the scope.
  • We test negotiation with clients that offer ML-KEM groups and clients that do not.
  • We record the exact product version each setting applies to, since defaults differ between releases.

How we hand over

  • We deliver a written record of each configuration change, its test results and its rollback steps.
  • We document which key exchange group each system negotiates, so reviewers can check it against the record.
  • We confirm compatibility for the specific versions the client runs, since the sources do not establish it generally.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers once the handover is complete.
  • Retainer work can re-test key exchange negotiation after product upgrades that change default groups.
  • Where a system cannot be upgraded, we document it so the client can track it separately from the migrated estate.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.