From 62465df4d60106c8db9bfbf429a6e614c2191c6d Mon Sep 17 00:00:00 2001 From: laforge Date: Tue, 13 Jun 2006 09:32:06 +0000 Subject: 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 --- src/rfid_asic_rc632.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.3