#include <stdint.h>
Go to the source code of this file.
|
| int8_t | LFS_read_file_checksum_sha256 (const char filepath[], uint32_t start_offset, uint32_t max_length, uint8_t sha256_dest[32]) |
| | Computes the SHA256 checksum of a file in LittleFS.
|
| |
◆ LFS_read_file_checksum_sha256()
| int8_t LFS_read_file_checksum_sha256 |
( |
const char | filepath[], |
|
|
uint32_t | start_offset, |
|
|
uint32_t | max_length, |
|
|
uint8_t | sha256_dest[32] ) |
Computes the SHA256 checksum of a file in LittleFS.
- Parameters
-
| filepath | Path to the file to read and compute the checksum for. |
| start_offset | The offset in the file from which to start reading. |
| max_length | The maximum number of bytes to read from the file. 0 means read the entire file. |
| sha256_dest | 32-byte array to be filled with checksum. |
- Returns
- 0 on success. Negative LFS error codes on error.