this commit refactors the signature checks. First we introduce a common pm3 generic private / public key pair in order to allow for users to self sign their own modded device. The verification checks now looks at both hard coded public keys. If a vendor wants to add their own public key thus allowing for a simple way for us to identify their devices they can now do so. The downside is that the firmware mismatch detection becomes a bit dodgy. mem info; mem info -v; mem info -s -p <filename.pem>; mem info -s -p <filename.pem> -w contains the changes. OBS! when -w be careful to not overwrite your genuine RDV4 signature. As always, with great power comes great responsibility

This commit is contained in:
iceman1001 committed 2025-09-25 19:44:36 +02:00
1 parent 1412b6882b
commit b097e10aa3
11 files changed
+340 -178

No files matched your search

+9 -3
View File
@@ -31,8 +31,14 @@ typedef enum {
DICTIONARY_MIFARE_ULAES,
} Dictionary_t;
typedef enum {
SIGN_RDV4 = 0,
SIGN_GENERIC,
SIGN_UNK = 99
} signature_e;
int CmdFlashMem(const char *Cmd);
int rdv4_get_signature(rdv40_validation_t *out);
int rdv4_validate(rdv40_validation_t *mem);
int rdv4_get_flash_pages64k(uint8_t *pages64k);
int pm3_get_signature(rdv40_validation_t *out);
int pm3_validate(rdv40_validation_t *mem, signature_e *type);
int pm3_get_flash_pages64k(uint8_t *pages64k);
#endif