X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/76c7e6c36368c3fc23dc4fab1fe5852023c78fac..a8cd503dd5b68ab727fc9ed68f11d68bc6d7b41a:/armsrc/desfire_key.h diff --git a/armsrc/desfire_key.h b/armsrc/desfire_key.h index ae1249b4..0d99903e 100644 --- a/armsrc/desfire_key.h +++ b/armsrc/desfire_key.h @@ -1,10 +1,17 @@ -#ifndef __DESFIRE_KEY_H -#define __DESFIRE_KEY_H - -#include -#include -#include - +#ifndef __DESFIRE_KEY_INCLUDED +#define __DESFIRE_KEY_INCLUDED #include "iso14443a.h" -#include "../common/desfire.h" +// desfire_key.h +void Desfire_des_key_new (const uint8_t value[8], desfirekey_t key); +void Desfire_3des_key_new (const uint8_t value[16], desfirekey_t key); +void Desfire_des_key_new_with_version (const uint8_t value[8], desfirekey_t key); +void Desfire_3des_key_new_with_version (const uint8_t value[16], desfirekey_t key); +void Desfire_3k3des_key_new (const uint8_t value[24], desfirekey_t key); +void Desfire_3k3des_key_new_with_version (const uint8_t value[24], desfirekey_t key); +void Desfire_aes_key_new (const uint8_t value[16], desfirekey_t key); +void Desfire_aes_key_new_with_version (const uint8_t value[16], uint8_t version,desfirekey_t key); +uint8_t Desfire_key_get_version (desfirekey_t key); +void Desfire_key_set_version (desfirekey_t key, uint8_t version); +void Desfire_session_key_new (const uint8_t rnda[], const uint8_t rndb[], desfirekey_t authkey, desfirekey_t key); + #endif \ No newline at end of file