Password-authenticated key exchange

OPAQUE-Ristretto255-SHA-512

Asymmetric PAKE: password login where the server never sees the password

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 OPAQUE-Ristretto255-SHA-512

OPAQUE-Ristretto255-SHA-512 is a password-authenticated key exchange from the OPAQUE family. It uses a 1–256-byte key and a 64-byte shared secret. Its registry entry cites RFC 9807. 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

OPAQUE is an augmented (asymmetric) PAKE that lets a client log in with a password while the server stores only a value from which the password cannot be learned without an offline dictionary attack. It is specified by the IRTF CFRG as RFC 9807.

In conventional password login the server receives the password, even if only briefly, and stores a salted hash that an attacker can copy and attack later. OPAQUE uses an oblivious pseudorandom function (OPRF) keyed by the server: the client blinds its password, the server evaluates the OPRF without seeing it, and the client unblinds the result to obtain a key that decrypts an envelope holding its long-term key material. The parties then run an authenticated key exchange.

Because the per-user OPRF key acts as a secret salt that is never sent to the client, an attacker who wants to precompute password guesses must first compromise the server; OPAQUE is secure against such precomputation attacks, unlike SRP. The password never leaves the client, and the protocol yields a mutually authenticated session key. One configuration is present: opaque-ristretto255-sha512, using the ristretto255 group for the OPRF and key exchange with SHA-512.

History

2018–2025
  1. OPAQUE published by Stanisław Jarecki, Hugo Krawczyk, Jiayu Xu

  2. Specified in RFC 9807

How it works

  1. Registration: the client blinds its password, the server evaluates the OPRF, and the client stores an encrypted envelope and public key with the server.
  2. Login: the client blinds the password again and sends it with a key-exchange message.
  3. The server returns the OPRF evaluation, the stored envelope and its key-exchange response.
  4. The client unblinds, opens the envelope, completes the key exchange and both sides derive a session key.

Security notes

A server compromise still allows offline dictionary attacks against stored records, so slow password hashing (the KSF stage) remains important. The construction is not post-quantum. NextSSL has not yet verified it against the RFC test vectors.

Typical uses

Password login without the server ever seeing the passwordEnd-to-end encrypted backups protected by a passwordReplacing SRP in new systems

Sizes

FieldBytesMeaning
key1 – 256Secret key
ss64Shared secret

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
# multi-round: see _pake_start / _pake_step in examples/python/nextssl_demo.py

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

Frequently asked questions

What is OPAQUE-Ristretto255-SHA-512?

OPAQUE-Ristretto255-SHA-512 is a PAKE in the OPAQUE family. OPAQUE is an augmented (asymmetric) PAKE that lets a client log in with a password while the server stores only a value from which the password cannot be learned without an offline dictionary attack.

What are the OPAQUE-Ristretto255-SHA-512 sizes?

In NextSSL, OPAQUE-Ristretto255-SHA-512 uses: key 1 to 256 bytes, shared secret 64 bytes.

Who designed OPAQUE-Ristretto255-SHA-512 and when?

OPAQUE-Ristretto255-SHA-512 belongs to the OPAQUE family, first published in 2018 by Stanisław Jarecki, Hugo Krawczyk, Jiayu Xu. Its origin: IRTF CFRG, RFC 9807.

Which standards define OPAQUE-Ristretto255-SHA-512?

OPAQUE-Ristretto255-SHA-512 is referenced by RFC 9807.

Is OPAQUE-Ristretto255-SHA-512 safe to use?

OPAQUE-Ristretto255-SHA-512 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).