sha256

Calculates the SHA-256 of a file.

Parameters

name

The path of the file.


suspend fun sha256(name: String, offset: Int, length: Int): McuMgrFsSha256Response

Calculates the SHA-256 of a part of a file.

Parameters

name

The path of the file.

offset

The offset, from which the hash is calculated.

length

The number of bytes to take into account.