OPAQUE-Ristretto255-SHA-512
Asymmetric PAKE: password login where the server never sees the password
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–2025OPAQUE published by Stanisław Jarecki, Hugo Krawczyk, Jiayu Xu
Specified in RFC 9807
How it works
- Registration: the client blinds its password, the server evaluates the OPRF, and the client stores an encrypted envelope and public key with the server.
- Login: the client blinds the password again and sends it with a key-exchange message.
- The server returns the OPRF evaluation, the stored envelope and its key-exchange response.
- 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 1 – 256 | Secret key |
| ss | 64 | Shared 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
nextssl_root_pake_start("opaque-ristretto255-sha512", NULL, role, password, context, &handle, msg);
nextssl_root_pake_step(handle, msg_in, msg_out, ss, &done);
// pake is a root-only kind: use the C ABI (nextssl_root_*)
// or the Pake trait in nextssl-core/src/traits.rs
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 password-authenticated key exchange
All 3Frequently 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).
Related families
HMAC-based extract-and-expand key derivation function (RFC 5869)
OPRF (RFC 9497)Oblivious pseudorandom function over ristretto255 with SHA-512
SPAKE2Balanced password-authenticated key exchange based on Diffie-Hellman
SRP-6aSecure Remote Password: a long-deployed augmented PAKE over finite-field groups
Argon2The Password Hashing Competition winner: memory-hard hashing standardised in RFC 9106