benilla-re systems structs docs

s_randomPool

global · net

Address
0xc2a428 · 64 bytes, up to 0xc2a467
Type
uint8_t[64]
Meaning
Holds the SHA-1 random pool SRP6 draws from, seeded at startup with the client clock
Confidence
verified, proof one
Finding
net/login#random-pool

Finding: Random pool in net: login

The pool is a SHA-1 generator of 64 bytes: a 20-byte seed hash, a 20-byte copy of it, a 20-byte output block and a count of unused output bytes. Seeding with s hashes the 12 bytes time(0), s and the C runtime's rand() after srand(s). Drawing takes the unused tail of the block; when it runs out, the block becomes H(seed ‖ block ‖ copy). The pool at 0xc2a428 is seeded at startup with the client clock and is the one SRP6 draws a from.

The derivation is in the doc.