recover_pk selftests: show curve & hash
[RRG-proxmark3.git] / include / protocol_vigik.h
blob7512c1c2d808d36fe15d4b2afb82fbbab14a2f90
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 #ifndef PROTOCOL_VIGIK_H
17 #define PROTOCOL_VIGIK_H
18 #include "common.h"
20 typedef struct mfc_vigik_s {
21 uint8_t b0[16];
22 uint8_t mad[32];
23 uint8_t counters;
24 uint8_t rtf[15];
25 uint32_t service_code;
26 uint8_t info_flag;
27 uint8_t key_version;
28 uint16_t ptr_counter;
29 uint8_t counter_num;
30 uint8_t slot_access_date[5];
31 uint16_t slot_dst_duration;
32 uint8_t other_slots[8];
33 uint8_t services_counter;
34 uint8_t loading_date[5];
35 uint16_t reserved_null;
36 uint8_t rsa_signature[128];
37 } mfc_vigik_t;
39 typedef struct vigik_pk_s {
40 const char *desc;
41 uint16_t code;
42 const char *n;
43 } vigik_pk_t;
45 #endif