FSPXI:ReadFileSHA256

FSPXI:ReadFileSHA256

Request #

Index WordDescription
0Header code [0x004D01C4]
1File handle lower word
2File handle upper word
3Offset lower word
4Offset upper word
5Size of read buffer
6Alignment size (always 0x00001000)
7Size of hashtable
8(size of hashtable << 8) | 6
9Pointer to hashtable
10(size of read buffer << 8) | 0x14
11Pointer to read buffer

Response #

Index WordDescription
0Header code
1Result code
2Size read
34

The data read are stored in the read buffer. For each 0x1000-byte block read, a SHA256 hash of the block is stored in the hashtable.

It is unknown how hashing behaves if the read offset/size are not aligned to a 0x1000-byte boundary.