benilla-re systems structs docs

SBigFromBinary

function · storm · boundary

Address
0x665910 · 329 bytes, up to 0x665a58
Meaning
Loads a big number from little-endian bytes: byte i into bits 8(i mod 4) of word i/4
Confidence
verified, proof one
Finding
net/login#srp6-client
Test
net::srp6_client_session

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 2

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.