From 46f983fe9eae83d493c429fc0974d49e58f9740f Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 12 Apr 2016 11:29:40 +0200 Subject: [PATCH] REM: removed an unused method MifareCollectNonces ADD: added some set_tracing(FALSE) calls for consistency. and.. syntax suger --- armsrc/apps.h | 1 - armsrc/mifareutil.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/armsrc/apps.h b/armsrc/apps.h index eed9f63af..314c9640a 100644 --- a/armsrc/apps.h +++ b/armsrc/apps.h @@ -147,7 +147,6 @@ void MifareCIdent(); // is "magic chinese" card? void MifareUSetPwd(uint8_t arg0, uint8_t *datain); void OnSuccessMagic(); void OnErrorMagic(uint8_t reason); -void MifareCollectNonces(uint32_t arg0, uint32_t arg1); //desfire void Mifare_DES_Auth1(uint8_t arg0,uint8_t *datain); diff --git a/armsrc/mifareutil.c b/armsrc/mifareutil.c index bae4761d3..3d6dce41d 100644 --- a/armsrc/mifareutil.c +++ b/armsrc/mifareutil.c @@ -179,7 +179,7 @@ int mifare_classic_authex(struct Crypto1State *pcs, uint32_t uid, uint8_t blockN } // Skip 32 bits in pseudo random generator - nt = prng_successor(nt,32); + nt = prng_successor(nt, 32); // ar+parity for (pos = 4; pos < 8; pos++) {