mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-14 05:41:43 +08:00
22 lines
973 B
C
22 lines
973 B
C
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2019 Merlok
|
|
//
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
// the license.
|
|
//-----------------------------------------------------------------------------
|
|
// MIFARE Application Directory (MAD) functions
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef _MAD_H_
|
|
#define _MAD_H_
|
|
|
|
#include "common.h"
|
|
|
|
int MADCheck(uint8_t *sector0, uint8_t *sector10, bool verbose, bool *haveMAD2);
|
|
int MADDecode(uint8_t *sector0, uint8_t *sector10, uint16_t *mad, size_t *madlen, bool swapmad);
|
|
int MAD1DecodeAndPrint(uint8_t *sector, bool swapmad, bool verbose, bool *haveMAD2);
|
|
int MAD2DecodeAndPrint(uint8_t *sector, bool swapmad, bool verbose);
|
|
int MADCardHolderInfoDecode(uint8_t *data, size_t dataLen, bool verbose);
|
|
|
|
#endif // _MAD_H_
|