]> git.zerfleddert.de Git - proxmark3-svn/blame - client/mifarehost.h
1. fixed hf 14a mifare. added functionality to ignore one Nt
[proxmark3-svn] / client / mifarehost.h
CommitLineData
f397b5cc
M
1// Merlok, 2011\r
2// people from mifare@nethemba.com, 2010\r
3//\r
4// This code is licensed to you under the terms of the GNU GPL, version 2 or,\r
5// at your option, any later version. See the LICENSE.txt file for the text of\r
6// the license.\r
7//-----------------------------------------------------------------------------\r
8// High frequency ISO14443A commands\r
9//-----------------------------------------------------------------------------\r
10\r
11#include <stdio.h>\r
12#include <stdlib.h>\r
13#include <unistd.h>\r
14#include <conio.h>\r
15#include "common.h"\r
16#include "cmdmain.h"\r
17#include "ui.h"\r
18#include "data.h"\r
19#include "proxusb.h"\r
20#include "util.h"\r
21#include "nonce2key/nonce2key.h"\r
22#include "nonce2key/crapto1.h"\r
23\r
24#define MEM_CHUNK 1000000\r
25#define NESTED_SECTOR_RETRY 10\r
26\r
27typedef struct fnVector { uint8_t blockNo, keyType; uint32_t uid, nt, ks1; } fnVector;\r
28\r
29typedef struct {\r
30 uint64_t Key[2];\r
31 int foundKey[2];\r
32} sector;\r
33 \r
34typedef struct {\r
35 uint64_t *possibleKeys;\r
36 uint32_t size;\r
37} pKeys;\r
38\r
39typedef struct {\r
40 uint64_t key;\r
41 int count;\r
42} countKeys;\r
43\r
44int mfnested(uint8_t blockNo, uint8_t keyType, uint8_t * key, uint8_t trgBlockNo, uint8_t trgKeyType, uint8_t * ResultKeys);\r
45int mfCheckKeys (uint8_t blockNo, uint8_t keyType, uint8_t keycnt, uint8_t * keyBlock, uint64_t * key);\r
46\r
Impressum, Datenschutz