[crypto] Atomize all traces of MbedTLS, and require OpenSSL 3+ #3606

Merged
crueter merged 21 commits from lizzie/mbedtls-nuke1 into master 2026-02-23 02:50:14 +01:00
Member

Closes #3137
Closes #3465

  • Replace all mbedtls usage with OpenSSL
  • require OpenSSL
  • Up OpenSSL version to 3, cuz that's what we actually need...

CAVEATS:

  • httplib also now required
  • other ssl backends for svc are unused, maybe remove later
    • To be fair, our CI never used them anyways. And we never tested those

TESTERS PLEASE TEST:

  • All games and applets boot
  • Boot, load, exit, etc. times

Co-authored-by: crueter crueter@eden-emu.dev
Signed-off-by: lizzie lizzie@eden-emu.dev

Closes #3137 Closes #3465 - Replace all mbedtls usage with OpenSSL - require OpenSSL - Up OpenSSL version to 3, cuz that's what we actually need... CAVEATS: - httplib also now required - other ssl backends for svc are unused, maybe remove later * To be fair, our CI never used them anyways. And we never tested those TESTERS PLEASE TEST: - All games and applets boot - Boot, load, exit, etc. times Co-authored-by: crueter <crueter@eden-emu.dev> Signed-off-by: lizzie <lizzie@eden-emu.dev>
crueter changed title from WIP: [crypto] Replace mbedtls3 usage with OpenSSL to [crypto] Atomize all traces of MbedTLS, and require OpenSSL 3+ 2026-02-22 23:37:46 +01:00
docs/Deps.md Outdated
@ -121,7 +120,7 @@ sudo emerge -a \
dev-util/vulkan-utility-libraries dev-util/glslang \
media-gfx/renderdoc media-libs/libva media-libs/opus media-video/ffmpeg \
media-libs/VulkanMemoryAllocator media-libs/libsdl2 media-libs/cubeb \
net-libs/enet net-libs/mbedtls \
Member

Need to remove mention on every other system too

Need to remove mention on every other system too
crueter marked this conversation as resolved
crueter left a comment
Owner

System MbedTLS with AVX-512 is marginally better than a bundled OpenSSL, but on the AppImage they are identical, if not OpenSSL being a bit faster.

Everything works on my end but idk what xts_archive is used for so can't test

There are multiple things to clean up perf-wise still, this was mostly ad-hoc

System MbedTLS with AVX-512 is *marginally* better than a bundled OpenSSL, but on the AppImage they are identical, if not OpenSSL being a bit faster. Everything works on my end but idk what xts_archive is used for so can't test There are multiple things to clean up perf-wise still, this was mostly ad-hoc
crueter force-pushed lizzie/mbedtls-nuke1 from b21e7929f0
All checks were successful
eden-license / license-header (pull_request) Successful in 19s
GitHub Actions [CI] Build succeeded
GitHub Releases [CD] Release published
to 77ba33d5fc
All checks were successful
eden-license / license-header (pull_request) Successful in 19s
GitHub Actions [CI] Build succeeded
GitHub Releases [CD] Release published
2026-02-23 01:38:41 +01:00
Compare
Owner

Integrity verification is dramatically faster, upwards of 4-5x
Firmware installation is also noticeably faster

Integrity verification is *dramatically* faster, upwards of 4-5x Firmware installation is also noticeably faster
crueter approved these changes 2026-02-23 02:37:49 +01:00
crueter left a comment
Owner

No regressions, and OpenSSL is generally faster + responds significantly better to mtune and march options.

No regressions, and OpenSSL is generally faster + responds significantly better to mtune and march options.
MaranBr approved these changes 2026-02-23 02:39:48 +01:00
DraVee left a comment
Member

Not much difference on Android side (probably another thing is making it slow)
Tested on Gentoo, everything working fine, gonna check on Windows

Not much difference on Android side (probably another thing is making it slow) Tested on Gentoo, everything working fine, gonna check on Windows
Owner

probably another thing is making it slow
Android

> probably another thing is making it slow > Android
DraVee approved these changes 2026-02-23 02:50:01 +01:00
DraVee left a comment
Member

Working fine on MSVC and MingW

Working fine on MSVC and MingW
crueter merged commit 0a687b82d4 into master 2026-02-23 02:50:14 +01:00
crueter deleted branch lizzie/mbedtls-nuke1 2026-02-23 02:50:14 +01:00
Sign in to join this conversation.
No description provided.