[nca] Use better tight loop allocation schemes (none at all) for AES decrypt/encrypt and force MbedTLS to use AES x86_64 instructions #2750

Merged
CamilleLaVey merged 10 commits from aesdecrypt-faster into master 2025-10-17 05:08:52 +02:00
Member

Uses stack instead of allocating stuff haphazardly (16 bytes and 512 bytes respectively) - removes malloc() pollution and all that nasty stuff from tight loops
Original work by Ribbit but edited by me.
Will NOT bring a massive speedup since the main bottleneck is mbedtls itself, but may bring nice oddities to STARTUP TIMES nonetheless.
AES instructions being forced wont affect CPUs without them since there is always a runtime check for them.

Signed-off-by: lizzie lizzie@eden-emu.dev

Uses stack instead of allocating stuff haphazardly (16 bytes and 512 bytes respectively) - removes malloc() pollution and all that nasty stuff from tight loops Original work by Ribbit but edited by me. Will NOT bring a massive speedup since the main bottleneck is mbedtls itself, but may bring nice oddities to STARTUP TIMES nonetheless. AES instructions being forced wont affect CPUs without them since there is always a runtime check for them. Signed-off-by: lizzie lizzie@eden-emu.dev
Lizzie changed title from WIP: use better tight loop allocation schemes (none at all) for AES decrypt/encrypt to Use better tight loop allocation schemes (none at all) for AES decrypt/encrypt and force MbedTLS to use AES x86_64 instructions 2025-10-16 08:36:11 +02:00
crueter force-pushed aesdecrypt-faster from cc0283ea7f
All checks were successful
eden-license / license-header (pull_request) Successful in 28s
to bec38b1ca1
All checks were successful
eden-license / license-header (pull_request) Successful in 33s
2025-10-17 01:19:16 +02:00
Compare
Lizzie changed title from Use better tight loop allocation schemes (none at all) for AES decrypt/encrypt and force MbedTLS to use AES x86_64 instructions to [nca] Use better tight loop allocation schemes (none at all) for AES decrypt/encrypt and force MbedTLS to use AES x86_64 instructions 2025-10-17 03:39:09 +02:00
Lizzie force-pushed aesdecrypt-faster from bec38b1ca1
All checks were successful
eden-license / license-header (pull_request) Successful in 33s
to b4bd555709
All checks were successful
eden-license / license-header (pull_request) Successful in 28s
2025-10-17 03:39:15 +02:00
Compare
CamilleLaVey deleted branch aesdecrypt-faster 2025-10-17 05:08:53 +02:00
Sign in to join this conversation.
No description provided.