Specifications
Smart Cards Lab COMPGA12 University College London
12.6 Which Key to Use
Please enter the key A for block of your card (or leave the default
value):
13 Accessing MiFare Classic Cards
From now on, everything should work both with ACR122 and Omnikey 5321
readers.
13.1 Accessing MiFare Classic Cards - 1 Card
We send the following command:
GET CARD SERIAL NUMBER
CLA INS P1 P2 Le
FF CA 00 00 00
Write here the answer bytes received:
13.2 Accessing MiFare Classic Cards - 2 Cards
In presence of two cards, for example the two card UIDs obtained in Section
?? (they are
and ) or any other two cards.
The reader will as a matter of fact use exactly one of them.
Everything below will work with one card, and also in the presence of
the second card, except that we will NOT be able to choose which card
we will working with. The reader does this choice during the anti-collision
stage which is hidden from us.
Write here the answer bytes received:
13.3 Installing the Key in the Reader Registers
The reader contains a chip with an implementation of Crypto-1 cipher that
needs to be initialized with the correct key.
Our key A for block is:
We send the following command:
LOAD KEY IN RAM REGISTERS
c
Nicolas T. Courtois 2009-10










