Post ·

192-bit curves: BLS24-509 and a secp384k1

The NSA’s new CNSA 1.0 advisory recommends moving to lattice-based cryptography (ML-KEM, ML-DSA). In the meantime, it recommends moving elliptic-curve cryptography to the 192-bit security level, i.e. from P-256 to P-384.

That interim step is easy for protocols built on NIST curves. However, many protocols use curves that never went through the NIST/NSA process, notably the pairing-friendly curve BLS12-381 and the Bitcoin/Ethereum curve secp256k1. Neither has an obvious 192-bit replacement.

A caveat applies throughout this post: 192-bit curves add margin against classical attacks only. Against a quantum computer, a 384-bit curve is only a constant factor harder to break than a 256-bit one. The end goal is still post-quantum cryptography.

BLS12-381 → BLS24-509

Aranha, Fotiadis and Guillevic (ePrint 2024/1223, CiC 2024) studied pairing-friendly curves with embedding degrees 12 to 28 at the 192-bit level against the special tower number field sieve (TNFS) attack. Their benchmarks cover the pairing, hashing, subgroup membership testing and scalar multiplication in $\mathbb{G}_1$, $\mathbb{G}_2$ and $\mathbb{G}_T$. Their recommendation is BLS24-509, which was the fastest of all the candidates on every operation they measured:

CurvePairing (Mcycles)
BLS24-50915.1
SG18-63820.8
KSS18-63825.0
AFG16-76632.6
BLS12-115057.8

Scaling BLS12 up to 192 bits needs a 1150-bit base field, so it is not a viable option.

For SNARKs, use the seed $u = 2^{51}+2^{44}+2^{41}-2^{37}+1$. It gives a 509-bit $p$ and a 409-bit $r$, with $2^{39} \mid r-1$ and $2^{37} \mid p-1$, so the curve supports large FFT domains. The older seed from Costello–Lauter–Naehrig only has $2^{13} \mid r-1$. Element sizes are 64 bytes for $\mathbb{G}_1$ and 256 bytes for $\mathbb{G}_2$.

secp256k1 → ?

There is no standard alternative here. SEC 2 stops at secp256k1 for its Koblitz-type curves, and P-384 loses everything that makes secp256k1 attractive:

  • the GLV endomorphism (or the newer $\tau$-adic method with $\tau = 1-\omega$, 2024/1906 and 2026/2667);
  • a fast pseudo-Mersenne prime;
  • the secp/secq cycle used by Bulletproofs and curve trees.

So here is one. To make the generation reproducible, I fixed the rules before running the search:

  1. $p = 2^{384} - c$ with the smallest $c$ such that $p$ is prime and $p \equiv 7 \bmod 12$. Here $p \equiv 1 \bmod 3$ gives the endomorphism, and $p \equiv 3 \bmod 4$ gives cheap square roots.
  2. The smallest $b$ such that $E: y^2 = x^3 + b$ has prime order $n$ and its quadratic twist has order $3 \cdot$prime. For a prime-order $j=0$ curve, the twist always has a point of order 3, so this is the best achievable. The usual MOV and anomalous checks must also pass.
  3. $G$ is the point with the smallest $x$-coordinate, taking the even $y$.

The result is secp384k1:

p    = 2^384 - 3474933
     = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcafa0b
E    : y^2 = x^3 + 11
n    = 0xffffffffffffffffffffffffffffffffffffffffffffffff543c2d2ad7e2c5dbde01406eb73896c9be6b508b0374d0d1
Gx   = 0x2
Gy   = 0xf2fa6b58112a14f05edaaa583ed4be80bec4d2f5545f76de0f6b0e30fdf018d66c46da173c765f53b5165086ef170ad6
beta = 0x42345ce2f70902824bab8887bf21a7b56f2b89a3a7db994f769a8fbaea75977c9fcadac3ff86c484ead9d8027a35a0a9
lam  = 0xa745e34131e1548dc2c3914390f447cb1d1f901587fdb91df95045018fe3193074f796f78e1563e183351a5edff16839

Here $\phi(x,y) = (\beta x, y)$ acts as $[\lambda]$ on $E$. The cofactor is 1, the twist order is $3 \times$ a 383-bit prime, and the GLV sub-scalars are at most 193 bits. Taking into account the order-6 automorphism, Pollard rho costs about $2^{191.0}$, the same one-bit shortfall that secp256k1 has at 128 bits.

The cycle comes for free: on secq384k1, $y^2 = x^3 + 10$ over $\mathbb{F}_n$, the group order is exactly $p$.

Some caveats:

  • The twist of secq384k1 has order $3 \times (88\text{-bit prime}) \times (296\text{-bit prime})$, which is only about 148-bit twist security. Always validate points on it.
  • $v_2(n-1) = 4$, so this cycle is not suited to FFT-based recursion.
  • Hash-to-curve via SwiftEC works directly; the RFC 9380 isogeny map is left to do.

All parameters were checked in both Sage and PARI/GP.

Code: https://github.com/yelhousni/secp384k1 and https://github.com/yelhousni/bls24-509.

← Back to the blog