From 0447774e17b3efb77e394a130d030ec7e7eb460f Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Mon, 28 Jun 2010 19:13:10 +0000 Subject: [PATCH] (mifare-classic-write-ndef) fix authentication block number with 4k. --- examples/mifare-classic-write-ndef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/mifare-classic-write-ndef.c b/examples/mifare-classic-write-ndef.c index cb9c850..afccfc5 100644 --- a/examples/mifare-classic-write-ndef.c +++ b/examples/mifare-classic-write-ndef.c @@ -158,7 +158,7 @@ main(int argc, char *argv[]) case CLASSIC_4K: if (key_10_type != MFC_KEY_B) { mifare_classic_trailer_block (&block, mad_key_a, 0x0, 0x1, 0x1, 0x6, 0x00, default_keyb); - if (mifare_classic_authenticate (tags[i], 0x10, key_10, key_10_type) < 0) { + if (mifare_classic_authenticate (tags[i], 0x40, key_10, key_10_type) < 0) { perror ("mifare_classic_authenticate"); error = 1; goto error;