benilla-re systems structs docs

SetPinChallenge

function · net · orchestration

Address
0x5b1ed0 · 64 bytes, up to 0x5b1f0f
Signature
void __thiscall (void *this, uint8_t pin_enabled, uint32_t grid_seed, const uint8_t *pin_salt)
Meaning
Stores the challenge PIN flag and, when set, builds the PIN grid from its seed and keeps the 16-byte PIN salt
Confidence
verified, proof one
Finding
net/logonlink#pin-challenge

Finding: Pin challenge in net: logon link

When the logon challenge carries a non-zero security byte, the logon object keeps a pin grid and a salt. 0x5b1ed0(flag, seed, salt) stores the flag at +0x1ac; with the flag set it fills the 10-byte grid at +0x1ae from the 32-bit seed and copies the 16-byte salt to +0x1b8. The grid is a permutation of 0 to 9: its ith entry is the remaining digit at index seed mod (10 − i), after which the seed is divided by 10 − i. The checksum salt callback then reports state 7, the pin state, when the flag is set, and 9, the checksum state, when it is not.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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