SHA1_Update
function · net · primitive
- Address
0x5d1de0· 209 bytes, up to0x5d1eb0- Signature
void __fastcall (SHA1_CTX *ctx, const void *data, uint32_t len)- Meaning
- Adds bytes to a SHA-1 context: advances the 64-bit bit count, buffers a partial block, compresses each full block
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- net/crypto#sha-1-overwrites-its-input
- Test
net::sha1_family_b,net::sha1_prng_next,net::sha1_prng_seed,net::srp6_client_session,net::srp6_credential_hash,net::srp6_file_hmac,net::srp6_interleave
Finding: SHA-1 overwrites its input in net: crypto
The client's SHA-1 (0x5d1db0 family: init, update, transform, final) keeps its 16-word
message schedule in the 64-byte block it is given, so a transformed block is left holding
schedule words. The update hands the transform the caller's own bytes for every full 64-byte
block that follows the context's buffered bytes; those spans of the caller's buffer are
overwritten. A short input, or the part copied into the context's buffer, is not. The hash
itself is SHA-1 by its constants; its rounds are not recorded here.
The derivation is in the doc.
Callers 11
- RealmConnection::HandleAuthChallenge net
- ServerLink::CmdGruntAuthChallenge net
- HashCdKeyProof net
- ClientLink::SendProof net
- SeedRandomPool net
- DrawRandomPoolBytes net
- SHA1_Final net
- Srp6InterleaveSessionKey net
- Srp6MakeVerifier net
- Srp6SetCredentials net
- Srp6ClientComputeProof net
Callees 1
- SHA1_Transform net
Calls and jumps by a bare address, from tables/calls.tsv.