Key exchange

Ed521gs

A 521-bit elliptic-curve key exchange on a Goldilocks-style Edwards curve, not post-quantum

unverified Root API only
Unverified tier.

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

  1. Each party generates a private scalar and computes a public point on the curve.
  2. The parties exchange public points and multiply the other side's point by their own scalar.
  3. 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

Classical elliptic-curve key exchange comparisonsHybrid key exchange alongside ML-KEMResearch into Goldilocks-type Edwards curves

Sizes

FieldBytesMeaning
pk144Public key
sk130Secret key
ss72Shared secret
seed0Seed

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]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently 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).