]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - client/mifarehost.h
2 // people from mifare@nethemba.com, 2010
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
7 //-----------------------------------------------------------------------------
8 // High frequency ISO14443A commands
9 //-----------------------------------------------------------------------------
20 #include "nonce2key/nonce2key.h"
21 #include "nonce2key/crapto1.h"
23 #define MEM_CHUNK 1000000
24 #define NESTED_SECTOR_RETRY 10
26 typedef struct fnVector
{ uint8_t blockNo
, keyType
; uint32_t uid
, nt
, ks1
; } fnVector
;
34 uint64_t *possibleKeys
;
43 int mfnested(uint8_t blockNo
, uint8_t keyType
, uint8_t * key
, uint8_t trgBlockNo
, uint8_t trgKeyType
, uint8_t * ResultKeys
);
44 int mfCheckKeys (uint8_t blockNo
, uint8_t keyType
, uint8_t keycnt
, uint8_t * keyBlock
, uint64_t * key
);
45 int mfEmlGetMem(uint8_t *data
, int blockNum
, int blocksCount
);
46 int mfEmlSetMem(uint8_t *data
, int blockNum
, int blocksCount
);