Implement on-the-fly MD5 checksum calculation

This commit is contained in:
2025-10-03 00:57:14 +01:00
parent 9e128a0ab8
commit 59addd3efc
4 changed files with 23 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
#include "crc64.h"
#include "hash_map.h"
#include "lru.h"
#include "md5.h"
#include "structs.h"
#include "utarray.h"
@@ -212,6 +213,8 @@ typedef struct aaruformatContext
bool rewinded; ///< True if stream has been rewound after open (write path).
uint64_t last_written_block; ///< Last written block number (write path).
bool calculating_md5; ///< True if whole-image MD5 being calculated on-the-fly.
md5_ctx md5_context; ///< Opaque MD5 context for streaming updates
} aaruformatContext;
/** \struct DumpHardwareEntriesWithData