mirror of
https://github.com/GerbilSoft/rvthtool.git
synced 2025-06-18 11:35:33 -04:00

Added Google Test v1.8.0 from rom-properties. Reworked cert_verify() to support both RSA-4096 and RSA-2048 signatures and public keys. The function now requires all certificates to use big-endian, so cert_store.c now uses BE32_CONST() to store the values as big-endian. BE32_CONST() is a macro that uses shifting for MSVC and intrinsics for gcc. This is needed because MSVC 2010 doesn't realize that its byteswap intrinsics result in constant values. (Later versions might...) cert.c: New function cert_get_size() that returns the full size of a built-in certificate. CertVerifyTest currently tests the retail ticket and TMD certificates. Both tests pass with all of these changes.
0 lines
Plaintext
Vendored
0 lines
Plaintext
Vendored