SRP-6a-2048-SHA-256
Secure Remote Password: a long-deployed augmented PAKE over finite-field groups
Old but not broken. Kept for interoperability; root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About SRP-6a-2048-SHA-256
SRP-6a-2048-SHA-256 is a password-authenticated key exchange from the SRP-6a family. It uses a 1–256-byte key and a 1–256-byte shared secret. Its registry entry cites RFC 5054 and RFC 2945. NextSSL lists it in the legacy tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
SRP is an augmented password-authenticated key exchange in which the server stores a verifier rather than the password. SRP-6a is its widely deployed revision, standardised for TLS in RFC 5054; it is considered legacy because modern designs such as OPAQUE offer stronger guarantees.
At registration the client computes a password verifier v = g^x mod N, where x is derived from a salt and the password, and the server stores the salt and v. During login both sides exchange ephemeral Diffie-Hellman style values, mixed with the verifier in a way that lets the client prove knowledge of the password and the server prove possession of the verifier, without either the password or an offline-testable value crossing the wire.
SRP's weaknesses are structural: the salt is sent to the client before authentication, so an attacker can precompute dictionaries for a target user and test them instantly after stealing the verifier database. The protocol also uses large finite-field groups and was designed before modern security models for PAKEs. It remains in use in Apple iCloud Keychain and many legacy systems. One configuration is present: srp-6a-2048-sha256, with the 2048-bit group from RFC 5054 and SHA-256.
History
1998–1998SRP-6a published by Thomas Wu
How it works
- Registration: the server stores salt s and verifier v = g^x mod N, where x = H(s, password).
- The client sends A = g^a; the server replies with s and B = k*v + g^b.
- Both compute u = H(A, B), and a shared value S from their secrets.
- Both derive a session key from S and exchange proofs M1 and M2 of the same key.
Security notes
Legacy: vulnerable to precomputation once the verifier database is stolen, since salts are public, and not post-quantum. Use OPAQUE for new password-authenticated systems.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 1 – 256 | Secret key |
| ss | 1 – 256 | Shared secret |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'legacy' is reachable from the root API only
# multi-round: see _pake_start / _pake_step in examples/python/nextssl_demo.py
nextssl_root_pake_start("srp-6a-2048-sha256", 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.
More password-authenticated key exchange
All 3Frequently asked questions
What is SRP-6a-2048-SHA-256?
SRP-6a-2048-SHA-256 is a PAKE in the SRP-6a family. SRP is an augmented password-authenticated key exchange in which the server stores a verifier rather than the password.
What are the SRP-6a-2048-SHA-256 sizes?
In NextSSL, SRP-6a-2048-SHA-256 uses: key 1 to 256 bytes, shared secret 1 to 256 bytes.
Who designed SRP-6a-2048-SHA-256 and when?
SRP-6a-2048-SHA-256 belongs to the SRP-6a family, first published in 1998 by Thomas Wu. Its origin: RFC 2945, RFC 5054 (TLS-SRP).
Which standards define SRP-6a-2048-SHA-256?
SRP-6a-2048-SHA-256 is referenced by RFC 5054, RFC 2945.
Is SRP-6a-2048-SHA-256 safe to use?
SRP-6a-2048-SHA-256 is in the legacy tier. Old but not broken. Kept for interoperability; root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).