mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Implement on-the-fly MD5 checksum calculation
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user