Srp6InterleaveSessionKey
function · net · primitive
- Address
0x5d3360· 224 bytes, up to0x5d343f- Signature
uint8_t * __fastcall (uint8_t *key, const uint8_t *s, uint32_t len)- Meaning
- Drops S's leading zero bytes (one more if odd), SHA-1s its even and odd bytes apart and interleaves them into 40 bytes
- Confidence
- verified, proof one
- Finding
- net/login#session-key-interleave
- Test
net::srp6_client_session,net::srp6_interleave
Finding: Session key interleave in net: login
K is built from S's 32 little-endian bytes. Leading zero bytes are dropped from the start of
the buffer, the low end of the number, and then one more byte if the count left is odd. Of
what remains, the even-indexed bytes are hashed to G and the odd-indexed bytes to H;
K[2i] = G[i] and K[2i+1] = H[i] for i from 0 to 19.
The derivation is in the doc.
Callers 1
Callees 4
- __alloca_probe crt
- SHA1_Init net
- SHA1_Update net
- SHA1_Final net
Calls and jumps by a bare address, from tables/calls.tsv.