eden/src/core/crypto
lizzie 440ee4916d
[nca] Use better tight loop allocation schemes (none at all) for AES decrypt/encrypt and force MbedTLS to use AES x86_64 instructions (#2750)
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
Co-authored-by: Ribbit <ribbit@placeholder.com>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2750
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
2025-10-17 05:08:51 +02:00
..
aes_util.cpp [nca] Use better tight loop allocation schemes (none at all) for AES decrypt/encrypt and force MbedTLS to use AES x86_64 instructions (#2750) 2025-10-17 05:08:51 +02:00
aes_util.h [meta] fix license headers (#2547) 2025-09-21 21:58:59 +02:00
ctr_encryption_layer.cpp [nca] Use better tight loop allocation schemes (none at all) for AES decrypt/encrypt and force MbedTLS to use AES x86_64 instructions (#2750) 2025-10-17 05:08:51 +02: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 [nca] Use better tight loop allocation schemes (none at all) for AES decrypt/encrypt and force MbedTLS to use AES x86_64 instructions (#2750) 2025-10-17 05:08:51 +02:00
xts_encryption_layer.h general: fix spelling mistakes 2023-03-12 11:33:01 -04:00