emoose / ExCrypt

Open source replacement for the Xbox360 XeCrypt suite.
BSD 3-Clause "New" or "Revised" License
26 stars 4 forks source link

Take big endian inputs in ExCryptBnQwBeSigDifference #10

Closed InvoxiPlayGames closed 1 month ago

InvoxiPlayGames commented 1 year ago

Previously, when providing an XECRYPT_RSA2048_PUB byte formatted structure (taken from a running console byte-for-byte), ExCryptBnQwBeSigVerify returned false. This swaps the input endianness of the public key into big endian (cloned into the stack, not affecting the original structure) so console-provided data verifies successfully.