FSPXI:WriteFileSHA256

FSPXI:WriteFileSHA256

Request #

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

Response #

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

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

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