Browse Source
[crypto] Rework AES CTR/XTS streaming and squash heap churn (#2782)
[crypto] Rework AES CTR/XTS streaming and squash heap churn (#2782)
AES Updates: Replaced heap churn with stack scratch buffers tail handling now stays in-place, no more recursive transcode detours. CTR/XTS modes read in larger, aligned chunks and still handle odd offsets cleanly. XTS prefetches a few sectors ahead to reduce extra reads. AesCtrStorage writer now uses the pooled buffer properly one stack slab, chunk forward, bump counter, repeat. Result: less malloc noise, fewer watchdog spikes at startup (though mbedtls still sets the pace). This should make the loading speed slightly better than before. Make sure to test. Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2782 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: crueter <crueter@eden-emu.dev> Co-authored-by: godpow <thesaviorsrule@yahoo.com> Co-committed-by: godpow <thesaviorsrule@yahoo.com>pull/2841/head
committed by
crueter
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
5 changed files with 168 additions and 116 deletions
-
62src/core/crypto/aes_util.cpp
-
94src/core/crypto/ctr_encryption_layer.cpp
-
92src/core/crypto/xts_encryption_layer.cpp
-
21src/core/file_sys/fssystem/fssystem_aes_ctr_storage.cpp
-
3src/core/file_sys/fssystem/fssystem_aes_xts_storage.cpp
Write
Preview
Loading…
Cancel
Save
Reference in new issue