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

@@ -310,6 +310,12 @@ void *aaruf_create(const char *filepath, const uint32_t media_type, const uint32
ctx->rewinded = false;
ctx->last_written_block = 0;
if(parsed_options.md5)
{
ctx->calculating_md5 = true;
aaruf_md5_init(&ctx->md5_context);
}
// Is writing
ctx->isWriting = true;