Added guard for no keys provided back.

This commit is contained in:
Chloé Franke committed 2026-08-19 15:38:42 +02:00
1 parent c6971eb3e4
commit 74eb81392a
1 file changed
+5
+5
View File
@@ -1721,6 +1721,11 @@ static int CmdHF14aDesChk(const char *Cmd) {
PrintAndLogEx(INFO, "Loaded " _YELLOW_("%"PRIu32) " aes keys", aeskeyCountTotal);
if (k3kkeyCountTotal > 0)
PrintAndLogEx(INFO, "Loaded " _YELLOW_("%"PRIu32) " k3kdes keys", k3kkeyCountTotal);
if (deskeyCountTotal + aeskeyCountTotal + k3kkeyCountTotal == 0) {
PrintAndLogEx(ERR, "No keys provided. Nothing to check.");
return PM3_EINVARG;
}
}
for (uint32_t x = 0; x < app_ids_len / 3; x++) {