Add SHA-1 checksum calculation support

This commit is contained in:
2025-10-03 01:49:44 +01:00
parent 59addd3efc
commit 1e569c68a1
10 changed files with 339 additions and 3 deletions

View File

@@ -315,6 +315,11 @@ void *aaruf_create(const char *filepath, const uint32_t media_type, const uint32
ctx->calculating_md5 = true;
aaruf_md5_init(&ctx->md5_context);
}
if(parsed_options.sha1)
{
ctx->calculating_sha1 = true;
aaruf_sha1_init(&ctx->sha1_context);
}
// Is writing
ctx->isWriting = true;