[Kernel] Replace BCrypt RSA with portable bignum implementation

Removes the Windows-only BCrypt dependency from XeCryptBnQwNeRsaPubCrypt
and replaces it with a portable modular exponentiation implementation
using 64-bit arithmetic, enabling RSA signature verification on all
platforms. Adds Catch2 tests validating the implementation with a
2048-bit RSA key.
This commit is contained in:
Herman S.
2026-03-10 16:20:38 +09:00
parent b15cd5b164
commit 3585b6e592
5 changed files with 606 additions and 100 deletions

View File

@@ -21,3 +21,8 @@ target_link_libraries(xenia-kernel PUBLIC
aes_128 fmt zlib-ng pugixml xenia-apu xenia-base xenia-cpu xenia-hid xenia-vfs
)
xe_target_defaults(xenia-kernel)
if(XENIA_BUILD_TESTS)
set(CMAKE_FOLDER "tests")
add_subdirectory(testing)
endif()