From 8026f33170fce6f2dafe4914e4f3527c43a101fa Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 28 Jul 2010 10:06:42 +0000 Subject: [PATCH] Add NFC Forum public key for MIFARE Classic. --- libfreefare/mifare_classic.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libfreefare/mifare_classic.c b/libfreefare/mifare_classic.c index eafd1ac..d2e2e2f 100644 --- a/libfreefare/mifare_classic.c +++ b/libfreefare/mifare_classic.c @@ -32,6 +32,10 @@ * Making the Best of Mifare Classic * Wouter Teepe (Radboud University Nijmegen) * October 6, 2008 + * + * Mifare Std as NFC Forum Enabled Tag + * Extensions for Mifare standard 1k/4k as NFC Forum Enable Tag + * Rev. 1.1 — 21 August 2007 */ #include "config.h" @@ -71,6 +75,11 @@ #define MC_INCREMENT 0xC1 #define MC_RESTORE 0xC2 +/* Public Key A value of NFC Forum sectors */ +const MifareClassicKey mifare_classic_nfcforum_public_key_a = { + 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7 +}; + union mifare_classic_block { unsigned char data[16]; struct {