summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-06-13 09:32:06 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-06-13 09:32:06 +0000
commit62465df4d60106c8db9bfbf429a6e614c2191c6d (patch)
treeafbaa6f949d0a882e87617f0f7a4452e84272f71 /src
parentc8347d03bf66dff5d8096995e05c919956d92a1b (diff)
Fix mifare authentication for multiple blocks
Around line 1320 in rfid_asic_rc632.c the CRYPTO1 bit in the RC632 is disabled. The RC632 docs state that this bit can only be set by a successfull AUTHENT2 command, but may be cleared by the user to disable encryption thereafter (but they don't say why anyone would want to do that). (Henryk Ploetz) git-svn-id: https://svn.gnumonks.org/trunk/librfid@1814 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'src')
-rw-r--r--src/rfid_asic_rc632.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/rfid_asic_rc632.c b/src/rfid_asic_rc632.c
index 58b075c..803a09c 100644
--- a/src/rfid_asic_rc632.c
+++ b/src/rfid_asic_rc632.c
@@ -1318,9 +1318,6 @@ rc632_mifare_auth(struct rfid_asic_handle *h, u_int8_t cmd, u_int32_t serno,
//acmd.serno = htonl(serno);
acmd.serno = serno;
- ret = rc632_clear_bits(h, RC632_REG_CONTROL,
- RC632_CONTROL_CRYPTO1_ON);
-
/* Clear Rx CRC */
ret = rc632_clear_bits(h, RC632_REG_CHANNEL_REDUNDANCY,
RC632_CR_RX_CRC_ENABLE);
personal git repositories of Harald Welte. Your mileage may vary