1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2019 iceman <iceman at iuse.se>
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 //-----------------------------------------------------------------------------
9 //-----------------------------------------------------------------------------
16 uint32_t ul_ev1_pwdgen_def(uint8_t *uid
);
17 uint32_t ul_ev1_pwdgenA(uint8_t *uid
);
18 uint32_t ul_ev1_pwdgenB(uint8_t *uid
);
19 uint32_t ul_ev1_pwdgenC(uint8_t *uid
);
20 uint32_t ul_ev1_pwdgenD(uint8_t *uid
);
22 uint16_t ul_ev1_packgen_def(uint8_t *uid
);
23 uint16_t ul_ev1_packgenA(uint8_t *uid
);
24 uint16_t ul_ev1_packgenB(uint8_t *uid
);
25 uint16_t ul_ev1_packgenC(uint8_t *uid
);
26 uint16_t ul_ev1_packgenD(uint8_t *uid
);
28 int mfc_algo_ving_one(uint8_t *uid
, uint8_t sector
, uint8_t keytype
, uint64_t *key
);
29 int mfc_algo_ving_all(uint8_t *uid
, uint8_t *keys
);
31 int mfc_algo_yale_one(uint8_t *uid
, uint8_t sector
, uint8_t keytype
, uint64_t *key
);
32 int mfc_algo_yale_all(uint8_t *uid
, uint8_t *keys
);
34 int mfc_algo_saflok_one(uint8_t *uid
, uint8_t sector
, uint8_t keytype
, uint64_t *key
);
35 int mfc_algo_saflok_all(uint8_t *uid
, uint8_t *keys
);
37 int mfc_algo_mizip_one(uint8_t *uid
, uint8_t sector
, uint8_t keytype
, uint64_t *key
);
38 int mfc_algo_mizip_all(uint8_t *uid
, uint8_t *keys
);
40 int mfc_algo_di_one(uint8_t *uid
, uint8_t sector
, uint8_t keytype
, uint64_t *key
);
41 int mfc_algo_di_all(uint8_t *uid
, uint8_t *keys
);
43 int mfc_algo_sky_one(uint8_t *uid
, uint8_t sector
, uint8_t keytype
, uint64_t *key
);
44 int mfc_algo_sky_all(uint8_t *uid
, uint8_t *keys
);
46 int mfc_generate4b_nuid(uint8_t *uid
, uint8_t *nuid
);
48 int mfc_algo_touch_one(uint8_t *uid
, uint8_t sector
, uint8_t keytype
, uint64_t *key
);
50 uint32_t lf_t55xx_white_pwdgen(uint32_t id
);
52 int mfdes_kdf_input_gallagher(uint8_t *uid
, uint8_t uidLen
, uint8_t keyNo
, uint32_t aid
, uint8_t *kdfInputOut
, uint8_t *kdfInputLen
);
54 int generator_selftest(void);