Implement image verification.

This commit is contained in:
2022-10-12 17:30:12 +01:00
parent a1a3ac3c51
commit bf6de56bc2
8 changed files with 323 additions and 2 deletions

View File

@@ -79,6 +79,8 @@ AARU_EXPORT int32_t AARU_CALL aaruf_read_sector_long(void* context,
uint8_t* data,
uint32_t* length);
AARU_EXPORT int32_t AARU_CALL aaruf_verify_image(void* context);
AARU_EXPORT int32_t AARU_CALL aaruf_cst_transform(const uint8_t* interleaved, uint8_t* sequential, size_t length);
AARU_EXPORT int32_t AARU_CALL aaruf_cst_untransform(const uint8_t* sequential, uint8_t* interleaved, size_t length);

View File

@@ -36,6 +36,7 @@
#define AARUF_ERROR_INVALID_TRACK_FORMAT -15
#define AARUF_ERROR_SECTOR_TAG_NOT_PRESENT -16
#define AARUF_ERROR_CANNOT_DECOMPRESS_BLOCK -17
#define AARUF_ERROR_INVALID_BLOCK_CRC -18
#define AARUF_STATUS_OK 0
#define AARUF_STATUS_SECTOR_NOT_DUMPED 1