Files
2022-12-24 22:44:01 -05:00
..

RSA (mbedtls) PRX

Version

This project contains code for creating a library with a RSA abilites. It will generate an output .prx (Playstation Relocatable Executable) for the PS4, as well as a stub .so shared object file for linking on the PC side.

to Compile this PRX correctly you must replace your link.x with this one (from OO) here $OO_PS4_TOOLCHAIN/link.x

Fix building libraries

AND Replace $OO_PS4_TOOLCHAIN/bin/linux/create-lib and $OO_PS4_TOOLCHAIN/bin/linux/create-eboot with these

Fix create-eboot generating non-contiguous relro and data segments #112 create-eboot/create-lib #45

The ELF, Orbis ELF (OELF), and object files will all be stored in the intermediate directory x64/Debug. The final library prx and stub files will be found in the root directory.

Libraries used

  • libSceLibcInternal
  • libkernel

Building

On Linux, a makefile has been included. To build this project, the developer will need clang, which is provided in the toolchain. The OO_PS4_TOOLCHAIN environment variable will also need to be set to the root directory of the SDK installation. along with the following Linux Prerequisites

Ubuntu 20.04 LTS

sudo apt-get install -y libmbedtls-dev
sudo apt-get install gcc-multilib
sudo apt-get install lld

Linux Run the makefile.

make

Reference(s) used

ARMmbed - https://github.com/ARMmbed/mbedtls

Author(s)

  • LM
  • ARMmbed
  • Specter