2011-05-31 19:31:20 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Merlok - June 2011
|
|
|
|
// Roel - Dec 2009
|
|
|
|
// Unknown author
|
|
|
|
//
|
|
|
|
// 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 Darkside hack
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2017-03-24 01:06:14 +08:00
|
|
|
#ifndef MFKEY_H
|
|
|
|
#define MFKEY_H
|
2011-06-07 20:35:52 +08:00
|
|
|
|
2017-03-09 18:12:50 +08:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
2017-08-18 13:50:03 +08:00
|
|
|
#include "mifare.h"
|
2016-06-24 13:31:27 +08:00
|
|
|
|
2017-03-24 01:06:14 +08:00
|
|
|
extern bool mfkey32(nonces_t data, uint64_t *outputkey);
|
|
|
|
extern bool mfkey32_moebius(nonces_t data, uint64_t *outputkey);
|
|
|
|
extern int mfkey64(nonces_t data, uint64_t *outputkey);
|
2011-06-07 20:35:52 +08:00
|
|
|
|
|
|
|
#endif
|