]> cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/mifareutil.h
a75d0d326ba0f9c78fc96487e578c02feb08ce3d
[proxmark3-svn] / armsrc / mifareutil.h
1 //-----------------------------------------------------------------------------
2 // Merlok, May 2011
3 // Many authors, that makes it possible
4 //
5 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
6 // at your option, any later version. See the LICENSE.txt file for the text of
7 // the license.
8 //-----------------------------------------------------------------------------
9 // code for work with mifare cards.
10 //-----------------------------------------------------------------------------
11
12 #define CRYPT_NONE 0
13 #define CRYPT_ALL 1
14 #define CRYPT_REQUEST 2
15 #define AUTH_FIRST 0
16 #define AUTH_NESTED 2
17
18 int mifare_classic_auth(struct Crypto1State *pcs, uint32_t uid, \
19 uint8_t blockNo, uint8_t keyType, uint64_t ui64Key, uint64_t isNested);
20 int mifare_classic_readblock(struct Crypto1State *pcs, uint32_t uid, uint8_t blockNo, uint8_t *blockData);
21 int mifare_classic_writeblock(struct Crypto1State *pcs, uint32_t uid, uint8_t blockNo, uint8_t *blockData);
22 int mifare_classic_halt(struct Crypto1State *pcs, uint32_t uid);
23
Impressum, Datenschutz