mlkem768x25519-sha256 vs sntrup761x25519-sha512: two SSH hybrid methods

mlkem768x25519-sha256 pairs ML-KEM-768 with X25519 and SHA-256, while sntrup761x25519-sha512 pairs sntrup761 with X25519 and SHA-512. Both are SSH key exchange methods, and the choice is mainly about the defining document, default status and what your peers support.

On this page

Which SSH hybrid key exchange method applies to your servers and clients

You are most likely looking at this because an OpenSSH configuration, a vendor document or an audit question names one of two hybrid key exchange methods: mlkem768x25519-sha256, which combines ML-KEM-768 (defined in FIPS 203) with X25519 and SHA-256, or sntrup761x25519-sha512, which combines the sntrup761 KEM with X25519 and SHA-512. The main distinction is the post-quantum KEM each one uses and the hash that derives the final shared secret. Network, platform and security engineers meet this question when tuning SSH settings, and auditors reviewing those settings meet it when they ask which method is negotiated. The names appear in OpenSSH configuration, in RFC 9941 (which defines sntrup761x25519-sha512) and RFC 10042 (which defines mlkem768x25519-sha256), and in vendor documents that list supported algorithms.

The sources give the two methods a different history. RFC 9941 was published in April 2026 as an Informational RFC and advises implementations to announce and accept sntrup761x25519-sha512@openssh.com as an alias. RFC 10042 was published in August 2026 as an Informational RFC and defines mlkem768x25519-sha256 alongside two other variants. The OpenSSH post-quantum page says OpenSSH has offered post-quantum key agreement by default since 9.0 (April 2022), initially with sntrup761x25519-sha512, that mlkem768x25519-sha256 was added in OpenSSH 9.9, and that it became the default in OpenSSH 10.0 (April 2025). The OpenSSH 10.0 release notes describe it as standardised by NIST and considerably faster than the previous default. Check the version of each server and client you run, because the method negotiated by default depends on that version.

For a practical check, confirm which methods each side offers and which one the handshake selects, rather than relying on the default alone. OpenSSH 10.1 warns by default when a connection does not use a post-quantum key exchange, and that warning can be silenced for a specific host with WarnWeakCrypto no-pq-kex in ssh_config, so a silenced warning can hide a connection that is not post-quantum. Where a vendor or auditor asks about one method by name, ask for the exact version and whether the @openssh.com alias is in use, since the sources do not describe the two methods as interchangeable. Confirm compatibility for the versions you run against the RFCs and the OpenSSH documentation, and read the byte-level differences in RFC 9941 and RFC 10042 if your tooling depends on them.

How the two methods compare attribute by attribute

This table sets the two OpenSSH hybrid key exchange methods side by side on the KEM, classical component, hash, defining RFC, byte sizes, IANA status and OpenSSH version. Where an RFC does not state a size, the cell says so rather than filling the gap. Read each row as a separate fact to confirm against the cited document for the version you run.

Attributemlkem768x25519-sha256sntrup761x25519-sha512
Key encapsulation mechanismML-KEM-768, defined in FIPS 203sntrup761 KEM
Classical componentX25519X25519
HashSHA-256, with K = HASH(K_PQ || K_CL)SHA-512, with the 32-byte KEM key and 32-byte X25519 secret hashed into K
Defining RFC, date and statusRFC 10042, published August 2026, InformationalRFC 9941, published April 2026, Informational
Public key and ciphertext sizesRFC 10042 does not state SSH sizes for ML-KEM-768; FIPS 203 gives 1184 and 1088 bytes for TLSRFC 9941 gives the sntrup761 public key as 1158 bytes and the ciphertext as 1039 bytes
Client and server value sizesRFC 10042 does not state SSH sizes for this methodQ_C is 1190 bytes and Q_S is 1071 bytes, per RFC 9941
IANA OK to ImplementSHOULDSHOULD, with sntrup761x25519-sha512@openssh.com announced as an alias
OpenSSH versionAdded in OpenSSH 9.9, default from OpenSSH 10.0 (April 2025)Default from OpenSSH 9.0 (April 2022)

What each method is and which document defines it

The method mlkem768x25519-sha256 is defined in RFC 10042, which was published in August 2026 as an Informational RFC. It pairs the ML-KEM-768 key encapsulation mechanism, specified in NIST FIPS 203, with the classical X25519 elliptic curve function and hashes the combined material with SHA-256. The RFC also defines two sibling methods, mlkem768nistp256-sha256 and mlkem1024nistp384-sha384, so the name you see in a configuration or capture identifies one specific combination. RFC 10042 states that its message abstraction, key derivation and hash input align with RFC 9941, but with a different KEM.

  • Document: RFC 10042, published August 2026, Informational status.
  • KEM: ML-KEM-768, defined in FIPS 203, which NIST published on 13 August 2024.
  • Classical component: X25519, using 32-byte public keys and shared secrets as specified in RFC 7748.
  • Key order: In RFC 10042 the ML-KEM public key precedes the X25519 public key in the exchanged value. The shared secret is computed as K = HASH(K_PQ || K_CL) with SHA-256.
  • Byte lengths: RFC 10042 does not state ML-KEM-768 public key and ciphertext lengths for SSH. The FIPS 203 sizes of 1184 and 1088 bytes apply to ML-KEM-768 in TLS, so confirm the SSH lengths against the RFC before relying on them.
  • Where you meet it: OpenSSH added this method in version 9.9 and made it the default key agreement method in OpenSSH 10.0, released April 2025.

Check the exact method name in your server and client configuration, and confirm which OpenSSH version each host runs before assuming this method is in use.

Differences that change SSH configuration and decisions

The two methods share a message format and key derivation pattern, but they differ in KEM family, hash, message sizes and how each OpenSSH release treats them. Each card below is one difference that affects a configuration choice, an interoperability check or a policy decision.

KEM family and defining document

mlkem768x25519-sha256 uses ML-KEM-768, which is defined in FIPS 203, the NIST Module-Lattice-Based Key-Encapsulation Mechanism Standard. sntrup761x25519-sha512 uses the sntrup761 KEM, which RFC 9941 defines for SSH. When you audit a host, the KEM family tells you which standard to cite: a FIPS reference for the first method and an RFC for the second. Check the method name in the server's negotiated list, not only the default.

FIPS 203 text

Hash and how K is derived

The first method hashes with SHA-256 and the second with SHA-512, so the shared secret K has a different length and derivation path in each. RFC 9941 places the 32-byte KEM key first, then the 32-byte X25519 secret, and hashes them with SHA-512 as an SSH string rather than an mpint. RFC 10042 orders the ML-KEM public key before the X25519 public key and computes K as HASH(K_PQ || K_CL) with SHA-256. Interoperability depends on matching these details exactly.

RFC 9941

Message sizes in the RFC values

RFC 9941 gives the sntrup761 public key as 1158 bytes and the KEM ciphertext as 1039 bytes, which makes the client value Q_C 1190 bytes and the server value Q_S 1071 bytes. RFC 10042 does not state byte lengths for the ML-KEM-768 public key and ciphertext in SSH. Its sizes come from the FIPS 203 values used in TLS, which are 1184 and 1088 bytes. Before you tune a packet path or MTU for either method, confirm the sizes against the RFC or your build rather than assuming them.

RFC 10042

Default status across OpenSSH releases

The OpenSSH post-quantum page says OpenSSH has offered post-quantum key agreement by default since 9.0, initially with sntrup761x25519-sha512. The method mlkem768x25519-sha256 was added in 9.9 and became the default in 10.0. Any fleet running a mix of these versions will negotiate different methods depending on the client and server pair. Check the version on both ends before you assume which method is in use.

OpenSSH PQ page

IANA OK to Implement values

IANA marks mlkem768x25519-sha256 and mlkem1024nistp384-sha384 as SHOULD for OK to Implement. RFC 9941 gives the same SHOULD value to the sntrup761 alias, and advises implementations to announce and accept sntrup761x25519-sha512@openssh.com. For a vendor review, these entries show what the registry recommends, but they do not confirm that a particular product implements the method. Ask for the product's own list of supported methods.

IANA registry

The 10.1 warning and WarnWeakCrypto

The OpenSSH post-quantum page says version 10.1 warns by default when a connection does not use a post-quantum key exchange. You can silence the warning for a given host with WarnWeakCrypto no-pq-kex in ssh_config. Before you add this setting, decide whether the host should be exempt from the warning, and record that decision so an auditor can see it. The setting only controls the warning and does not change which methods are negotiated.

OpenSSH PQ page

How the key derivation differs between the two RFCs

The two SSH methods order their components differently and compute the final shared secret differently. In RFC 9941, which defines sntrup761x25519-sha512, the 32-byte KEM key comes first and the 32-byte X25519 secret comes second. K is the SHA-512 hash of those values, and it is encoded as an SSH string rather than an mpint. The sntrup761 public key is 1158 bytes and the KEM ciphertext is 1039 bytes, so the client value Q_C is 1190 bytes and the server value Q_S is 1071 bytes. An engineer reading a packet capture or a protocol trace should expect these lengths for this method, and should confirm them against the RFC before relying on them in a parser or a test.

In RFC 10042, which defines mlkem768x25519-sha256, the ML-KEM public key precedes the X25519 public key in the exchanged values. The key derivation is K = HASH(K_PQ || K_CL) with SHA-256, where K_PQ is the ML-KEM shared secret and K_CL is the X25519 shared secret. The RFC does not state the byte lengths of the ML-KEM-768 public key and ciphertext in SSH. The FIPS 203 sizes of 1184 and 1088 bytes apply to ML-KEM-768 in TLS, so readers should check the SSH length figures in RFC 10042 itself rather than assume the TLS values carry over.

RFC 10042 states that its message abstraction, key derivation and hash input align with RFC 9941 but with a different KEM. That alignment is a useful reading aid: the overall structure is shared, while the KEM, the component order and the hash differ. The alignment is not a statement that the two methods are interoperable. An implementation that supports one method does not thereby support the other, and a client that offers mlkem768x25519-sha256 cannot assume that a server will accept a sntrup761x25519-sha512 exchange, or the reverse. Confirm the exact method names and versions each side supports before assuming any exchange will succeed.

For OpenSSH operators, the practical consequence is in the selection order. OpenSSH has offered post-quantum key agreement by default since 9.0, initially with sntrup761x25519-sha512. mlkem768x25519-sha256 was added in OpenSSH 9.9 and became the default in OpenSSH 10.0. OpenSSH 10.1 warns by default when a connection does not use a post-quantum key exchange, and that warning can be silenced per host with WarnWeakCrypto no-pq-kex in ssh_config. Teams that pin KexAlgorithms or audit negotiated methods should check which method their sessions actually use, and should not treat the warning's silence as evidence that a specific method was chosen.

How to work out which method applies to your environment

This sequence establishes which of the two OpenSSH hybrid methods, mlkem768x25519-sha256 or sntrup761x25519-sha512, each of your servers and clients will negotiate, and where a configuration or peer forces one method over the other. The output is a written inventory you can check against vendor documentation and any tender or audit request.

  1. Record the OpenSSH version on every endpoint

    Run ssh -V on each client and sshd -V or ssh -V on each server, and record the version string alongside the host name and role. Sort the results into groups: versions earlier than 9.0, versions from 9.0 up to 9.8, versions from 9.9 up to 10.0, and 10.0 or later. The OpenSSH post-quantum page says sntrup761x25519-sha512 has been offered by default since 9.0, that mlkem768x25519-sha256 was added in 9.9, and that it became the default in 10.0, so the version tells you which method is the default for that endpoint. You are done when every host has a recorded version and a group.

  2. Confirm the default method for each version

    For each group, check the OpenSSH release notes and the post-quantum page to confirm which method is the default. The 10.0 release notes say mlkem768x25519-sha256 is used by default for key agreement. Hosts that run a version earlier than 9.0 offer neither method by default, so mark them as needing a separate check of any explicit configuration. Do not assume a distribution package matches upstream defaults; confirm the actual version your vendor ships. You are done when each version group has a stated default, or a note that the default could not be confirmed.

  3. Read sshd_config and ssh_config for KexAlgorithms

    On each server, open sshd_config and any files it includes, and search for KexAlgorithms. On each client, do the same in ssh_config and any per-user ~/.ssh/config. An explicit KexAlgorithms line overrides the default, so a host can be pinned to one method even when its version would otherwise default to the other. Record every explicit setting with the file path and the host or match block it applies to. You are done when every host has either no explicit setting or a recorded list of the methods it names.

  4. Map peers that support only one method

    List each bastion, jump host, load balancer, appliance and managed endpoint that sits between your clients and servers, and check which key exchange methods each one offers. Use ssh -Q kex on a system you control to list the methods a client build supports, and consult the vendor documentation for appliances. A connection can only use a method both ends offer, so a peer that offers just one method determines the outcome for every path through it. You are done when each connection path has a recorded list of methods supported at each hop, and any path with a single common method is flagged.

  5. Compare the vendor documentation and audit requests

    Collect any tender, contract, vendor security questionnaire or audit request that asks which SSH key exchange method is used or required. Record the method each document names, the document title and date, and whether it names one method or accepts either. Compare these with the methods found in steps one to four. Where a document names a method your environment does not negotiate by default or by configuration, note the gap for the owner to resolve. You are done when every document has an entry showing the method it names and whether your recorded configuration matches it.

  6. Check WarnWeakCrypto on OpenSSH 10.1 hosts

    On every host running OpenSSH 10.1, check whether the client warns when a connection does not use a post-quantum key exchange. The OpenSSH post-quantum page says 10.1 warns by default, and that the warning can be silenced per host with WarnWeakCrypto no-pq-kex in ssh_config. Record any host that silences the warning, because a silenced warning can hide a connection that negotiated a method you did not intend. You are done when every 10.1 client has a recorded warning setting, and every silenced host has a documented reason.

  7. Write the applicable method for each environment

    Combine the results into one table with one row per host or connection path. For each row, record the OpenSSH version, the default method for that version, any explicit KexAlgorithms setting, the methods each peer supports, any document that names a method, and the WarnWeakCrypto setting. Mark the method each row is expected to negotiate, and mark rows where the expected method is uncertain. Confirm the result by running ssh -vv against a test host and checking the negotiated key exchange line in the debug output. You are done when every row has an expected method and every uncertain row has a named owner to resolve it.

Whether both methods are used together and how the sources describe the transition

Both mlkem768x25519-sha256 and sntrup761x25519-sha512 can appear in the same key exchange negotiation, because an SSH client and server choose from a list of methods they both support. The RFC that defines the older method, RFC 9941, advises implementations to announce and accept sntrup761x25519-sha512@openssh.com as an alias for it. Anyone reviewing a server or client configuration should therefore expect to see both names in offered method lists, and should not read the presence of one as proof that the other is absent. The exact method list a given OpenSSH build offers depends on its version and configuration, so confirm it on the systems you run with ssh -Q kex or the server's own configuration before drawing conclusions.

The OpenSSH sources describe a sequence rather than a replacement. OpenSSH has offered post-quantum key agreement by default since 9.0 (April 2022), initially using sntrup761x25519-sha512. According to the OpenSSH post-quantum page, mlkem768x25519-sha256 was added in OpenSSH 9.9 and became the default in OpenSSH 10.0 (April 2025). The OpenSSH 10.0 release notes describe it as the default for key agreement, standardised by NIST and considerably faster than the previous default. The sources do not describe sntrup761x25519-sha512 as removed, so the defaults are the only point on which they speak about the change.

For operators, the practical checks are which OpenSSH version each host runs, whether the default key exchange on that version is the one your policy expects, and whether any host pins an explicit KexAlgorithms list. OpenSSH 10.1 warns by default when a connection does not use a post-quantum key exchange, and the warning can be silenced per host with WarnWeakCrypto no-pq-kex in ssh_config. Teams should decide whether that warning is acceptable for each host class and record the decision. Compatibility with clients or appliances outside OpenSSH should be confirmed against each product's own documentation, since the sources cited here do not cover them.

Common questions about the two SSH hybrid methods

Are mlkem768x25519-sha256 and sntrup761x25519-sha512 the same thing?

No. They are two different SSH key exchange methods that share a design pattern but use different post-quantum components. Both pair a post-quantum key encapsulation mechanism (KEM) with X25519, and both combine the two shared secrets with a hash. The difference is the KEM and the hash. mlkem768x25519-sha256 uses ML-KEM-768, defined in FIPS 203, with SHA-256. sntrup761x25519-sha512 uses the sntrup761 KEM with SHA-512, and RFC 9941 says its shared secret K is 64 bytes. Because the KEM and hash differ, the two methods produce different key material and different message sizes on the wire, so they do not interoperate as one method. The sources list them as separate method names, and a client and server negotiate one of them, not a blend. Confirm the exact names and versions your SSH implementation supports before assuming any overlap.

Which SSH hybrid method is newer?

mlkem768x25519-sha256 is the newer of the two in terms of its RFC. RFC 9941, which defines sntrup761x25519-sha512, was published in April 2026 as an Informational RFC. RFC 10042, which defines mlkem768x25519-sha256 along with two other ML-KEM variants, was published later, in August 2026, also as an Informational RFC. In terms of OpenSSH availability, the order runs the other way. OpenSSH has offered sntrup761x25519-sha512 since 9.0 (April 2022), and mlkem768x25519-sha256 was added in OpenSSH 9.9. So the RFC for ML-KEM came after the RFC for NTRUPrime, while the ML-KEM method reached OpenSSH after the NTRUPrime method did. Publication dates of the RFCs and release dates of OpenSSH are different timelines, and you should use the one that matches your question.

Which hybrid method is the OpenSSH default?

The default changed between releases. OpenSSH has offered post-quantum key agreement by default since 9.0 (April 2022), initially with sntrup761x25519-sha512. mlkem768x25519-sha256 was added in OpenSSH 9.9 and became the default in OpenSSH 10.0, released in April 2025. The OpenSSH 10.0 release notes say the ML-KEM method is now used by default for key agreement, that the algorithm has been standardised by NIST, and that it is considerably faster than the previous default. So a server or client running 10.0 or later will prefer mlkem768x25519-sha256 when both sides support it. Older versions default to sntrup761x25519-sha512. If you need to know which method a specific host negotiates, check the OpenSSH version on both ends and verify the negotiated algorithm in your own environment rather than relying on the default alone, because configuration can override the default.

Can both SSH hybrid methods be used on the same server?

Yes, in principle. Both method names can appear in a server's list of supported key exchange algorithms, and the client and server agree on one from the intersection of their lists. RFC 9941 advises implementations to announce and accept sntrup761x25519-sha512@openssh.com as an alias, and the IANA OK to Implement value for that method is SHOULD. IANA also marks mlkem768x25519-sha256 as SHOULD for OK to Implement. Keeping both available lets older clients that only offer the NTRUPrime method still connect while newer clients negotiate ML-KEM. Be aware that each method has its own sizes on the wire, so you should test a mixed fleet rather than assuming the two behave identically. Check your sshd configuration for the KexAlgorithms setting to see which methods the server accepts and in what order, and verify with a real client connection before a change.

Does a customer or regulator require one SSH hybrid method over the other?

The sources listed on this page do not say that any customer, regulator or standard requires one of the two SSH hybrid methods specifically. RFC 9941 and RFC 10042 are both Informational RFCs, which describe methods rather than mandate them. The ML-KEM method is built on FIPS 203, which NIST published on 13 August 2024, and OpenSSH's release notes describe its algorithm as standardised by NIST. That standardisation is the point a reviewer may reference when asking why a NIST-based KEM is in use. Requirements vary by contract, sector and jurisdiction, so the requirement, if any, will come from the document that governs your system. Ask the customer or regulator to name the specific method, algorithm or standard they expect, and check whether they accept either method as a reference.

What should I ask a vendor about either SSH hybrid method?

Ask the vendor to confirm which method names their SSH implementation offers and in what order, and which version and edition each applies to. Ask whether the sntrup761x25519-sha512@openssh.com alias is announced and accepted, and whether mlkem768x25519-sha256 is available in the version you deploy. Ask which method is the default in the version you run, and whether that default can be changed in configuration. Ask how the vendor handles fallback when a client offers only the other method, and whether a warning is produced when a connection uses no post-quantum key exchange. For OpenSSH specifically, ask whether your build includes version 10.1 or later if you rely on the WarnWeakCrypto no-pq-kex setting. Request written documentation for each claim, because a product statement about support is only useful when it names the version and method.

How do the two methods' sizes differ on the wire?

The sizes differ because each method uses a different KEM. RFC 9941 gives the sntrup761 public key as 1158 bytes and the KEM ciphertext as 1039 bytes, so the client value Q_C is 1190 bytes and the server value Q_S is 1071 bytes. RFC 10042 does not state byte lengths for the ML-KEM-768 public key and ciphertext in SSH. For TLS, FIPS 203 sizes for ML-KEM-768 are 1184 bytes for the encapsulation key and 1088 bytes for the ciphertext, and draft-ietf-tls-mlkem-11 gives the same values for the TLS key exchange. Because the SSH sizes for ML-KEM are not stated in the sources listed here, confirm them in the RFC 10042 text or in your implementation's packet capture before sizing buffers or firewall rules. Do not assume TLS sizes carry over to SSH messages without checking.

Mix-ups to avoid in vendor documents and tenders

The most common error in vendor documents is treating mlkem768x25519-sha256 and sntrup761x25519-sha512 as the same algorithm with different names. They are two separate SSH key exchange methods. Each pairs a post-quantum key encapsulation mechanism with X25519, but the KEM differs: the first uses ML-KEM-768 as defined in FIPS 203, and the second uses the sntrup761 KEM as specified in RFC 9941. The hash also differs, SHA-256 for the first and SHA-512 for the second, so the shared secret K is derived differently in each. When a tender asks whether a product supports post-quantum SSH key exchange, the reader should check which of these two methods is named, not accept a general claim.

A second confusion is between the KEM and the classical component. Both methods include X25519, so a line in a vendor document that says the product supports X25519 does not show that it supports either post-quantum method. The post-quantum part is the KEM alone. RFC 9941 and RFC 10042 both describe the combined key exchange, and the sources do not present X25519 as a post-quantum algorithm. Vendors should be asked to name the KEM and the hash for each method they claim, and to state the OpenSSH version in which each is offered.

Two naming issues also cause errors. The first is that sntrup761x25519-sha512@openssh.com and sntrup761x25519-sha512 should not be read as different methods. RFC 9941 advises implementations to announce and accept the @openssh.com form as an alias, so a configuration or scan may show either string for the same method. Second, RFC 10042 defines SSH names, and these must not be matched to the TLS group names in RFC 10024, such as X25519MLKEM768 or SecP256r1MLKEM768. Those are TLS groups with their own IANA registry entries. Reviewers should confirm which protocol each claim refers to before comparing product documentation.

How DeployOpen works on this

DeployOpen works on SSH post-quantum key exchange as implementation work on the servers and clients an organization runs. The engagement starts from which OpenSSH versions and key exchange methods each system already negotiates, then sets the configuration and verification steps for the chosen method.

How we scope

  • We inventory which SSH servers and clients you run and which OpenSSH versions they use.
  • We record which key exchange methods each system offers and accepts today, including any sntrup761x25519-sha512@openssh.com alias.
  • Engagements are fixed-scope, and the scope, deliverables and timeline are agreed in writing before work starts.

How we build

  • We set KexAlgorithms and related configuration on each system to the method the agreed scope requires.
  • We check that both sides of each connection negotiate a post-quantum method and record the result for every host.
  • We address the WarnWeakCrypto no-pq-kex setting where a host needs it, and document each exception with its reason.

How we hand over

  • You receive a written record of the configuration, host by host, with the OpenSSH version and the negotiated method.
  • The handover documents the verification commands and results, so your team can repeat the checks on its own systems.
  • Compliance and security teams get the evidence they need for review, while audit opinions come from independent auditors.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after the handover.
  • Upgrades to new OpenSSH releases are checked against the agreed key exchange configuration before they reach production.
  • Confirm with your vendors and the OpenSSH project whether a given version and method pairing is supported in your environment.

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.