From 4f70f777def197934cb30c617aa0643f3daa822f Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 3 Dec 2022 20:37:53 +0100 Subject: [PATCH] typedef file for vigik annotater --- include/protocol_vigik.h | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 include/protocol_vigik.h diff --git a/include/protocol_vigik.h b/include/protocol_vigik.h new file mode 100644 index 000000000..95ce9d1e3 --- /dev/null +++ b/include/protocol_vigik.h @@ -0,0 +1,44 @@ +//----------------------------------------------------------------------------- +// Copyright (C) Proxmark3 contributors. See AUTHORS.md for details. +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// See LICENSE.txt for the text of the license. +//----------------------------------------------------------------------------- +#ifndef PROTOCOL_VIGIK_H +#define PROTOCOL_VIGIK_H +#include "common.h" + +typedef struct mfc_vigik_s { + uint8_t b0[16]; + uint8_t mad[32]; + uint8_t counters; + uint8_t rtf[15]; + uint32_t service_code; + uint8_t info_flag; + uint8_t key_version; + uint16_t ptr_counter; + uint8_t counter_num; + uint8_t slot_access_date[5]; + uint16_t slot_dst_duration; + uint8_t other_slots[8]; + uint8_t services_counter; + uint8_t loading_date[5]; + uint16_t reserved_null; + uint8_t rsa_signature[128]; +} mfc_vigik_t; + +typedef struct vigik_pk_s { + const char *desc; + const char *n; +} vigik_pk_t; + +#endif \ No newline at end of file