Merge pull request #245 from McEloff/hf_mf_sim_auth_nack

hf_mf_sim. Really tags not respond NACK on invalid authentication
This commit is contained in:
Iceman 2019-07-14 22:48:04 +02:00 committed by GitHub
commit 9196bdc670
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1037,8 +1037,9 @@ void Mifare1ksim(uint16_t flags, uint8_t exitAfterNReads, uint8_t *datain) {
);
}
cardAUTHKEY = AUTHKEYNONE; // not authenticated
EmSend4bit(mf_crypto1_encrypt4bit(pcs, CARD_NACK_NA));
cardSTATE_TO_IDLE();
// Really tags not respond NACK on invalid authentication
LogTrace(uart->output, uart->len, uart->startTime * 16 - DELAY_AIR2ARM_AS_TAG, uart->endTime * 16 - DELAY_AIR2ARM_AS_TAG, uart->parity, true);
break;
}