Ed521gs
A 521-bit elliptic-curve key exchange on a Goldilocks-style Edwards curve, not post-quantum
Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Ed521gs
Ed521gs is a key exchange from the Ed521-GS family. It uses a 144-byte public key, a 130-byte secret key and a 72-byte shared secret. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
Ed521-GS is an elliptic-curve key exchange entry on a 521-bit Edwards-form curve in the Goldilocks family. Its public key is 144 bytes and its shared secret 72 bytes. It relies on the elliptic-curve discrete logarithm problem, so it is not resistant to quantum attacks.
Ed521-GS is an elliptic-curve key exchange built on a 521-bit Edwards curve in the Goldilocks family, a set of curves chosen for fast and constant-time arithmetic. Elliptic-curve Diffie-Hellman on such curves gives roughly 256 bits of classical security, which is well above the 128-bit target most protocols use.
NextSSL records a 144-byte public key, a 130-byte private key and a 72-byte shared secret. The archive tier is unverified. The 'GS' suffix is not defined in the archive, so the exact curve parameterisation should be confirmed from the source before relying on it.
Like all elliptic-curve key exchanges, this entry is broken by a large quantum computer running Shor's algorithm, so it is relevant to the post-quantum transition only as a classical comparison or as one half of a hybrid.
How it works
- Each party generates a private scalar and computes a public point on the curve.
- The parties exchange public points and multiply the other side's point by their own scalar.
- Both arrive at the same curve point, from which the 72-byte shared secret is derived.
Security notes
Unverified in NextSSL. Not post-quantum: Shor's algorithm would break the discrete logarithm on this curve. Use it as a classical component, or pair it with ML-KEM in a hybrid.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 144 | Public key |
| sk | 130 | Secret key |
| ss | 72 | Shared secret |
| seed | 0 | Seed |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
pk_a, sk_a = root.call("kex_keygen", "ed521gs", None, outs=2)
ss = root.call("kex_agree", "ed521gs", None, sk_a, peer_pk)[0]
nextssl_root_kex_keygen("ed521gs", NULL, pk, sk);
nextssl_root_kex_agree("ed521gs", 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::Any, "ed521gs", &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.
Similar names
Looking for something else?More key exchange
All 7Frequently asked questions
What is Ed521gs?
Ed521gs is a key exchange in the Ed521-GS family. Ed521-GS is an elliptic-curve key exchange entry on a 521-bit Edwards-form curve in the Goldilocks family.
What are the Ed521gs sizes?
In NextSSL, Ed521gs uses: public key 144 bytes, shared secret 72 bytes.
Is Ed521gs safe to use?
Ed521gs is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
Related families
Deterministic hashing of byte strings to elliptic curve points with the SSWU map
ML-KEMNIST's primary post-quantum key encapsulation mechanism, standardised in FIPS 203
ECDH (including X25519 and X448)Elliptic-curve Diffie-Hellman key agreement on NIST curves, Curve25519 and Curve448
NIST521-GSA 521-bit elliptic-curve key exchange with a NIST-style curve and 104-byte private key
Ed448-GoldilocksClassical EdDSA signatures on the Goldilocks curve, standardised in RFC 8032 and not post-quantum