Password-authenticated key exchange

SRP-6a-2048-SHA-256

Secure Remote Password: a long-deployed augmented PAKE over finite-field groups

legacy Root API only
Legacy tier.

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–1998
  1. SRP-6a published by Thomas Wu

How it works

  1. Registration: the server stores salt s and verifier v = g^x mod N, where x = H(s, password).
  2. The client sends A = g^a; the server replies with s and B = k*v + g^b.
  3. Both compute u = H(A, B), and a shared value S from their secrets.
  4. 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

Interoperating with existing SRP deploymentsTLS-SRP in legacy embedded systemsMigrating users to OPAQUE

Sizes

FieldBytesMeaning
key1 – 256Secret key
ss1 – 256Shared 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

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

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