CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
littlefs_checksums.h File Reference
#include <stdint.h>
Include dependency graph for littlefs_checksums.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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.
 

Function Documentation

◆ 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
filepathPath to the file to read and compute the checksum for.
start_offsetThe offset in the file from which to start reading.
max_lengthThe maximum number of bytes to read from the file. 0 means read the entire file.
sha256_dest32-byte array to be filled with checksum.
Returns
0 on success. Negative LFS error codes on error.
Here is the call graph for this function:
Here is the caller graph for this function: