eden-nx2-old/src/core/crypto
Repository files (latest commit first)
Filename Latest commit message Latest commit date
PavelBARABANOV ea92c081b7
[core] Speed up NCZBLOCK reads and skip double AES for pre-decrypted NCZ (#4582)
- [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions).
- [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md).
- [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability.

-------------------
- Use a 32-slot direct-mapped block cache and reuse one ZSTD_DCtx per
  BlockReader instead of re-creating it per block.
- Find the covering section with std::lower_bound instead of a linear scan
  (helps BKTR updates with thousands of sections).
- Mark BlockNczFile as HasDecryptedSections() and drop its CTR pass; NCZ
  body is stored decrypted, so NcaFileSystemDriver now skips its AES layers
  for these files (no double decryption).
- Recognize .xcz as XCZ in AppLoader_XCI::IdentifyType.

thanks Reikatari

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4582
Reviewed-by: Maufeat <sahyno1996@gmail.com>
2026-10-30 04:40:15 +01:00
..
aes_util.cpp [common] rework BitField and BitUtil, use concepts whenever possible (#4076) 2026-07-09 03:47:04 +02:00
aes_util.h [common] rework BitField and BitUtil, use concepts whenever possible (#4076) 2026-07-09 03:47:04 +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 [common] rework BitField and BitUtil, use concepts whenever possible (#4076) 2026-07-09 03:47:04 +02:00
key_manager.h [common] rework BitField and BitUtil, use concepts whenever possible (#4076) 2026-07-09 03:47:04 +02:00
ncz_decompressor.cpp [core] Speed up NCZBLOCK reads and skip double AES for pre-decrypted NCZ (#4582) 2026-10-30 04:40:15 +01:00
ncz_decompressor.h [core] Support block-compressed NSZ and XCZ (#4552) 2026-10-26 17:23:18 +01:00
partition_data_manager.cpp [crypto] Atomize all traces of MbedTLS, and require OpenSSL 3+ (#3606) 2026-02-23 02:50:13 +01:00
partition_data_manager.h [core] Remove key hashes and hash checks (#2552) 2025-09-23 05:06:31 +02: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