mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-24 23:42:58 +00:00
guard , if someone wanted to break pm3 simulation.... which is very like not to happen
This commit is contained in:
1 parent
2ccfa06386
commit
d1a6ef4704
1 file changed
+5
@@ -795,6 +795,11 @@ void SimulateSeos(seos_emulate_req_t *msg) {
|
||||
}
|
||||
|
||||
uint8_t cmac_size = recvd_cmac_length;
|
||||
if (cmac_size > 16) {
|
||||
Dbprintf(_RED_("Get Data failed") ": CMAC size invalid.");
|
||||
break;
|
||||
}
|
||||
|
||||
if (!generate_cmac(diver_cmac_key, mac_input, mac_input_idx, cmac, msg->encr_alg)) {
|
||||
Dbprintf(_RED_("Get Data failed") ": Failed to create reply CMAC.");
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user