mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Add support for on-the-fly BLAKE3 checksum calculation
This commit is contained in:
11
src/create.c
11
src/create.c
@@ -328,7 +328,16 @@ void *aaruf_create(const char *filepath, const uint32_t media_type, const uint32
|
||||
if(parsed_options.spamsum)
|
||||
{
|
||||
ctx->calculating_spamsum = true;
|
||||
ctx->spamsum_context = aaruf_spamsum_init();
|
||||
ctx->spamsum_context = aaruf_spamsum_init();
|
||||
}
|
||||
if(parsed_options.blake3)
|
||||
{
|
||||
ctx->blake3_context = calloc(1, sizeof(blake3_hasher));
|
||||
if(ctx->blake3_context != NULL)
|
||||
{
|
||||
ctx->calculating_blake3 = true;
|
||||
blake3_hasher_init(ctx->blake3_context);
|
||||
}
|
||||
}
|
||||
|
||||
// Is writing
|
||||
|
||||
Reference in New Issue
Block a user