eden-miror/src/core/crypto
godpow 41e15e95b1
[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>
2025-10-26 02:12:27 +01:00
..
aes_util.cpp [crypto] Rework AES CTR/XTS streaming and squash heap churn (#2782) 2025-10-26 02:12:27 +01:00
aes_util.h [meta] fix license headers (#2547) 2025-09-21 21:58:59 +02:00
ctr_encryption_layer.cpp [crypto] Rework AES CTR/XTS streaming and squash heap churn (#2782) 2025-10-26 02:12:27 +01:00
ctr_encryption_layer.h general: fix spelling mistakes 2023-03-12 11:33:01 -04:00
encryption_layer.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
encryption_layer.h vfs: Move vfs files to their own directory 2024-01-25 16:40:42 -05:00
key_manager.cpp [core] Remove key hashes and hash checks (#2552) 2025-09-23 05:06:31 +02:00
key_manager.h Update fmt to allow for v11 2025-04-10 01:11:22 +02:00
partition_data_manager.cpp [core] Remove key hashes and hash checks (#2552) 2025-09-23 05:06:31 +02:00
partition_data_manager.h [core] Remove key hashes and hash checks (#2552) 2025-09-23 05:06:31 +02:00
sha_util.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
sha_util.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
xts_encryption_layer.cpp [crypto] Rework AES CTR/XTS streaming and squash heap churn (#2782) 2025-10-26 02:12:27 +01:00
xts_encryption_layer.h general: fix spelling mistakes 2023-03-12 11:33:01 -04:00