X448
Elliptic-curve Diffie-Hellman key agreement on NIST curves, Curve25519 and Curve448
About X448
X448 is one of 5 ECDH (including X25519 and X448) variants in the NextSSL registry, a key exchange. It uses a 56-byte public key, a 56-byte secret key, a 56-byte shared secret and a 32–56-byte seed. Its registry entry cites RFC 7748. It is also known as curve448-dh. NextSSL lists it in the standard tier and exposes it through the safe API.
Overview
Elliptic Curve Diffie-Hellman lets two parties derive a shared secret from each other's public keys over an insecure channel. It is the classical key agreement used in TLS, SSH, Signal and most modern protocols, and today is usually paired with ML-KEM in hybrid post-quantum key exchange.
Each party holds a secret scalar and publishes the corresponding curve point. Multiplying the peer's public point by one's own scalar yields the same point on both sides, because scalar multiplication commutes. An eavesdropper who sees only the public points would need to solve the elliptic curve Diffie-Hellman problem. The raw shared secret should always be passed through a KDF such as HKDF before use as a key.
Two styles are present. ecdh-p256, ecdh-p384 and ecdh-p521 operate on the NIST prime curves following SP 800-56A and SEC 1, and require validating that received points lie on the curve to avoid invalid-curve attacks. X25519 and X448, specified in RFC 7748, use Montgomery curves and the Montgomery ladder; they accept any 32- or 56-byte string as a public key and clamp private scalars, which removes most validation pitfalls.
X25519 targets about 128-bit classical security and X448 about 224-bit. X25519 is the most widely used key exchange in TLS 1.3 and is the classical half of the X25519MLKEM768 hybrid. P-256 and P-384 remain common where FIPS validation is required, and X448 is used where a higher classical security margin is wanted. The raw output is the x-coordinate (the u-coordinate for X25519 and X448), not a uniformly random key.
History
1985–2018ECDH published
Specified in RFC 7748
Specified in NIST SP 800-56A Rev. 3
How it works
- Each party generates a secret scalar a or b and publishes A = aG or B = bG.
- Each side validates the peer's public key (point-on-curve checks for NIST curves).
- Both compute the shared point aB = bA and extract its x-coordinate.
- The shared value is fed into a KDF together with protocol context to derive keys.
Security notes
Broken by a large quantum computer, so recorded traffic is exposed to harvest-now, decrypt-later attacks; combine with ML-KEM in a hybrid for long-term confidentiality. On NIST curves, skipping public-key validation enables invalid-curve attacks, and the all-zero X25519 output from low-order points should be rejected where contributory behaviour matters.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 56 | Public key |
| sk | 56 | Secret key |
| ss | 56 | Shared secret |
| seed | 32 – 56 | Seed |
Use it
from nextssl_demo import NextSSL
ns = NextSSL() # safe API: safe and standard tiers
pk_a, sk_a = ns.call("kex_keygen", "x448", None, outs=2)
ss = ns.call("kex_agree", "x448", None, sk_a, peer_pk)[0]
nextssl_kex_keygen("x448", NULL, pk, sk);
nextssl_kex_agree("x448", NULL, sk, peer_pk, ss);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_kex_in(reg::all(), Policy::Safe, "x448", &Params::new())?;
let (pk, sk) = alg.keypair(&mut *rng)?;
let ss = alg.agree(&sk, &peer_pk)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other ECDH (including X25519 and X448) variants
4Similar names
Looking for something else?More key exchange
All 7Frequently asked questions
What is X448?
X448 is a key exchange in the ECDH (including X25519 and X448) family. Elliptic Curve Diffie-Hellman lets two parties derive a shared secret from each other's public keys over an insecure channel. It is also known as curve448-dh.
What are the X448 sizes?
In NextSSL, X448 uses: public key 56 bytes, shared secret 56 bytes.
Who designed X448 and when?
X448 belongs to the ECDH (including X25519 and X448) family, first published in 1985 by Whitfield Diffie, Martin Hellman (Diffie-Hellman); Neal Koblitz, Victor Miller (elliptic-curve cryptography); Daniel J. Bernstein (X25519); Mike Hamburg (Curve448). Its origin: NIST SP 800-56A Rev. 3, RFC 7748, SEC 1.
Which standards define X448?
X448 is referenced by RFC 7748.
Is X448 safe to use?
X448 is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.
What other ECDH (including X25519 and X448) variants are there?
NextSSL also registers ecdh-p256, ecdh-p384, ecdh-p521, x25519 in the ECDH (including X25519 and X448) family.
Related families
HMAC-based extract-and-expand key derivation function (RFC 5869)
ML-KEMNIST's primary post-quantum key encapsulation mechanism, standardised in FIPS 203
HPKEHybrid Public Key Encryption: a KEM, a KDF and an AEAD combined per RFC 9180
ECDSAElliptic Curve Digital Signature Algorithm on NIST curves and secp256k1
EdDSADeterministic Edwards-curve signatures: Ed25519 and Ed448