]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/mifareutil.h
d3307bb7093fe1a66b6a57231d8975e4459de93e
1 //-----------------------------------------------------------------------------
3 // Many authors, that makes it possible
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
8 //-----------------------------------------------------------------------------
9 // code for work with mifare cards.
10 //-----------------------------------------------------------------------------
14 #define CRYPT_REQUEST 2
18 uint8_t* mifare_get_bigbufptr(void);
19 int mifare_sendcmd_short(struct Crypto1State
*pcs
, uint8_t crypted
, uint8_t cmd
, uint8_t data
, uint8_t* answer
);
20 int mifare_sendcmd_shortex(struct Crypto1State
*pcs
, uint8_t crypted
, uint8_t cmd
, uint8_t data
, uint8_t* answer
, uint32_t * parptr
);
22 int mifare_classic_auth(struct Crypto1State
*pcs
, uint32_t uid
, \
23 uint8_t blockNo
, uint8_t keyType
, uint64_t ui64Key
, uint64_t isNested
);
24 int mifare_classic_authex(struct Crypto1State
*pcs
, uint32_t uid
, \
25 uint8_t blockNo
, uint8_t keyType
, uint64_t ui64Key
, uint64_t isNested
, uint32_t * ntptr
);
26 int mifare_classic_readblock(struct Crypto1State
*pcs
, uint32_t uid
, uint8_t blockNo
, uint8_t *blockData
);
27 int mifare_classic_writeblock(struct Crypto1State
*pcs
, uint32_t uid
, uint8_t blockNo
, uint8_t *blockData
);
28 int mifare_classic_halt(struct Crypto1State
*pcs
, uint32_t uid
);