Srp6SetCredentials
function · net · primitive
- Address
0x5d3590· 189 bytes, up to0x5d364c- Signature
int32_t __thiscall (void *this, const char *account, const char *password)- Meaning
- Stores SHA-1 of the account and of account:password, and starts the server-proof hash; returns -1 on a null string
- Confidence
- verified, proof one
- Finding
- net/login#srp6-client
- Test
net::srp6_credential_hash
Finding: SRP6 client in net: login
With N, g, salt s and B as little-endian numbers: x = H(s ‖ H(U:P)), v = gˣ,
a = r + bitlen(N) for 32 random bytes r, A = gᵃ, u = H(A ‖ B),
S = (B + 3(N − v))^(a + u·x) mod N, K = Interleave(S), and
M1 = H((H(N) ⊕ H(g)) ‖ H(U) ‖ s ‖ A ‖ B ‖ K); all powers are mod N. A, M1 and K are
stored; a running hash keeps A ‖ M1 ‖ K for the server's proof. It refuses N, g or the
salt empty or longer than 32 bytes, B shorter than 31, N under 256 bits, B ≥ N and B = 0.
The derivation is in the doc.
Callers 1
Callees 3
- SHA1_Init net
- SHA1_Update net
- SHA1_Final net
Calls and jumps by a bare address, from tables/calls.tsv.