mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-04 00:39:03 +00:00
[ctrtool] Improved efficiency of aes-ctr operations.
This commit is contained in:
+2
-1
@@ -93,7 +93,8 @@ void exheader_read(exheader_context* ctx, u32 actions)
|
||||
fseeko64(ctx->file, ctx->offset, SEEK_SET);
|
||||
fread(&ctx->header, 1, sizeof(exheader_header), ctx->file);
|
||||
|
||||
ctr_init_counter(&ctx->aes, ctx->key, ctx->counter);
|
||||
ctr_init_key(&ctx->aes, ctx->key);
|
||||
ctr_init_counter(&ctx->aes, ctx->counter);
|
||||
if (ctx->encrypted)
|
||||
ctr_crypt_counter(&ctx->aes, (u8*)&ctx->header, (u8*)&ctx->header, sizeof(exheader_header));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user